File tree Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ <h1>📘 The Code Magazine</h1>
25
25
< a href ="# "> Flexbox</ a >
26
26
< a href ="# "> CSS Grid</ a >
27
27
</ nav >
28
+
28
29
</ header >
29
30
30
31
< article >
@@ -142,6 +143,8 @@ <h4>Related posts</h4>
142
143
</ ul >
143
144
</ aside >
144
145
145
- < footer > Copyright © 2027 by The Code Magazine.</ footer >
146
+ < footer >
147
+ < p > Copyright © 2027 by The Code Magazine.</ p >
148
+ </ footer >
146
149
</ body >
147
150
</ html >
Original file line number Diff line number Diff line change
1
+ h1 , h2 , h3 , h4 , p , li {
2
+ font-family : sans-serif;
3
+ }
4
+
1
5
h1 {
2
- color : blue;
3
6
font-size : 26px ;
7
+ text-transform : uppercase;
8
+ font-style : italic;
9
+ }
10
+
11
+ h2 {
12
+ font-size : 40px ;
13
+ }
14
+
15
+ h3 {
16
+ font-size : 30px ;
17
+ }
18
+
19
+ h4 {
20
+ font-size : 20px ;
21
+ text-transform : uppercase;
22
+ text-align : center;
23
+ }
24
+
25
+ p {
26
+ font-size : 22px ; /*Default size is 16px*/
27
+ line-height : 1.5 ;
28
+ }
29
+
30
+ li {
31
+ font-size : 20px ;
32
+ }
33
+
34
+ /*Example of descendant selector*/
35
+ footer p {
36
+ font-size : 16px ;
37
+ }
38
+
39
+ /*Example of nested descendant selector*/
40
+ article header p {
41
+ font-style : italic;
4
42
}
You can’t perform that action at this time.
0 commit comments