Skip to content

Commit f12e692

Browse files
Manuel LorenzManuel Lorenz
Manuel Lorenz
authored and
Manuel Lorenz
committed
inline-styles-explained
0 parents  commit f12e692

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<link rel="stylesheet" href="main.css">
9+
</head>
10+
<body>
11+
<h1 class="blog-post">Our header</h1>
12+
<p class="blog-post" style="color: blue; font-size: 30px;">The blog post</p>
13+
<div class="blog-post">More info</div>
14+
</body>
15+
</html>
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+

main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.blog-post {
2+
color: red;
3+
font-size: 16px;
4+
font-weight: normal;
5+
}

0 commit comments

Comments
 (0)