File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ <h2>The Basic Language of the Web: HTML</h2>
39
39
width ="50 "
40
40
/>
41
41
42
- < p > Posted by < strong > Laura Jones</ strong > on Monday, June 21st 2027</ p >
42
+ < p id =" author " > Posted by < strong > Laura Jones</ strong > on Monday, June 21st 2027</ p >
43
43
44
44
< img
45
45
src ="img/post-img.jpg "
@@ -114,7 +114,7 @@ <h3>Why should you learn HTML?</h3>
114
114
< aside >
115
115
< h4 > Related posts</ h4 >
116
116
117
- < ul >
117
+ < ul class =" related " >
118
118
< li >
119
119
< img
120
120
src ="img/related-1.jpg "
@@ -123,12 +123,12 @@ <h4>Related posts</h4>
123
123
width ="75 "
124
124
/>
125
125
< a href ="# "> How to Learn Web Development</ a >
126
- < p > By Jonas Schmedtmann</ p >
126
+ < p class =" related-author " > By Jonas Schmedtmann</ p >
127
127
</ li >
128
128
< li >
129
129
< img src ="img/related-2.jpg " alt ="Lightning " width ="75 " heigth ="75 " />
130
130
< a href ="# "> The Unknown Powers of CSS</ a >
131
- < p > By Jim Dillon</ p >
131
+ < p class =" related-author " > By Jim Dillon</ p >
132
132
</ li >
133
133
< li >
134
134
< img
@@ -138,11 +138,11 @@ <h4>Related posts</h4>
138
138
height ="75 "
139
139
/>
140
140
< a href ="# "> Why JavaScript is Awesome</ a >
141
- < p > By Matilda</ p >
141
+ < p class =" related-author " > By Matilda</ p >
142
142
</ li >
143
143
</ ul >
144
144
</ aside >
145
145
146
- < footer > < p > Copyright © 2027 by The Code Magazine.</ p > </ footer >
146
+ < footer > < p id =" copyright " > Copyright © 2027 by The Code Magazine.</ p > </ footer >
147
147
</ body >
148
148
</ html >
Original file line number Diff line number Diff line change 31
31
/* not the ol/ul elements */
32
32
li {
33
33
font-size : 20px ;
34
+
34
35
}
35
36
36
37
/* descendant selector */
37
- footer p {
38
+ /* footer p {
39
+ font-size: 16px;
40
+ } */
41
+
42
+ # copyright {
38
43
font-size : 16px ;
39
44
}
40
45
41
- article header p {
46
+ /* article header p {
42
47
font-style: italic;
43
- }
48
+ } */
49
+
50
+ # author {
51
+ font-style : italic;
52
+ }
53
+
54
+ .related-author {
55
+ font-size : 18px ;
56
+ font-weight : bold;
57
+ }
58
+
59
+ .related {
60
+ list-style : none;
61
+ }
You can’t perform that action at this time.
0 commit comments