mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): replace the last comprehension check question for css rule lesson (#63845)
This commit is contained in:
+34
-13
@@ -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--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user