File tree 2 files changed +21
-3
lines changed
starter/03-CSS-Fundamentals
2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ <h3>What is HTML?</h3>
77
77
< p > In HTML, each element is made up of 3 parts:</ p >
78
78
79
79
< ol >
80
- < li > The opening tag</ li >
80
+ < li class =" first-li " > The opening tag</ li >
81
81
< li > The closing tag</ li >
82
82
< li > The actual element</ li >
83
83
</ ol >
@@ -99,7 +99,9 @@ <h3>Why should you learn HTML?</h3>
99
99
</ p >
100
100
101
101
< ul >
102
- < li > To be able to use the fundamental web dev language</ li >
102
+ < li class ="first-li ">
103
+ To be able to use the fundamental web dev language
104
+ </ li >
103
105
< li >
104
106
To hand-craft beautiful websites instead of relying on tools like
105
107
Worpress or Wix
@@ -116,7 +118,7 @@ <h3>Why should you learn HTML?</h3>
116
118
< h4 > Related posts</ h4 >
117
119
118
120
< ul class ="related ">
119
- < li >
121
+ < li class =" first-li " >
120
122
< img
121
123
src ="img/related-1.jpg "
122
124
alt ="Person programming "
Original file line number Diff line number Diff line change @@ -76,3 +76,19 @@ aside {
76
76
/* body {
77
77
background-color: blue;
78
78
} */
79
+
80
+ /* .first-li {
81
+ font-weight: bold;
82
+ } */
83
+
84
+ li : first-child {
85
+ font-weight : bold;
86
+ }
87
+
88
+ li : last-child {
89
+ font-style : italic;
90
+ }
91
+
92
+ li : nth-child (2 ) {
93
+ color : red;
94
+ }
You can’t perform that action at this time.
0 commit comments