fix(curriculum): replace the last comprehension check question for css rule lesson (#63845)

This commit is contained in:
Diem-Trang Pham
2025-11-15 12:57:00 -06:00
committed by GitHub
parent 4b3b1f742c
commit 4bde0ce62a
@@ -180,42 +180,63 @@ Look for the selector that targets all paragraph elements and the property that
## --text--
Given the following CSS rule, what will be the text size of the targeted HTML element?
Given the following HTML, which CSS rule correctly sets `h1` and `h2` text color to `green`?
```css
h1 {
color: green;
font-size: 24px;
}
```html
<link rel="stylesheet" href="styles.css">
<h1 id="title">Example heading</h1>
<h2 class="subheading">Example subheading</h2>
<p>Paragraph element</p>
```
## --answers--
`green`
```css
#title
.subheading {
color: green;
}
```
### --feedback--
The value is the specific measurement or setting applied to the property within the declaration block.
Refer back to the end of the lesson for the correct syntax.
---
`24px`
```css
#title,
.subheading {
color: green;
}
```
---
`16px`
```css
.title,
#subheading {
color: green;
}
```
### --feedback--
The value is the specific measurement or setting applied to the property within the declaration block.
Refer back to the end of the lesson for the correct syntax.
---
`font-size`
```css
#title,
#subheading {
color: green;
}
```
### --feedback--
The value is the specific measurement or setting applied to the property within the declaration block.
Refer back to the end of the lesson for the correct syntax.
## --video-solution--