mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-01 21:01:20 +08:00
fix(curriculum): correct CSS specificity lesson example to use ID selector (#64493)
This commit is contained in:
parent
03dca0ace7
commit
5f0b35a60e
@ -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>
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user