Skip to content

Commit 5f0b35a

Browse files
fix(curriculum): correct CSS specificity lesson example to use ID selector (freeCodeCamp#64493)
1 parent 03dca0a commit 5f0b35a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

curriculum/challenges/english/blocks/lecture-css-specificity-the-cascade-algorithm-and-inheritance/672aa62178d5ff57fe4f98e0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ The specificity value for internal styles is determined by the selectors used. F
192192
```html
193193
<head>
194194
<style>
195-
.text {
195+
#text {
196196
color: blue;
197197
}
198198
</style>
199199
</head>
200200
<body>
201-
<div class="text">This text is blue.</div>
201+
<div id="text">This text is blue.</div>
202202
</body>
203203
```
204204

0 commit comments

Comments
 (0)