mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): correct CSS specificity lesson example to use ID selector (#64493)
This commit is contained in:
+2
-2
@@ -192,13 +192,13 @@ The specificity value for internal styles is determined by the selectors used. F
|
||||
```html
|
||||
<head>
|
||||
<style>
|
||||
.text {
|
||||
#text {
|
||||
color: blue;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="text">This text is blue.</div>
|
||||
<div id="text">This text is blue.</div>
|
||||
</body>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user