mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-13 22:00:19 -04:00
fix(curriculum): replace second comprehensive check quesion in div element lesson (#63655)
This commit is contained in:
@@ -88,43 +88,35 @@ The `div` element has no semantic meaning.
|
||||
|
||||
## --text--
|
||||
|
||||
Which of the following is the correct syntax for a `div` element?
|
||||
When is it most appropriate to use a `div` element in your HTML?
|
||||
|
||||
## --answers--
|
||||
|
||||
```html
|
||||
<divEl>content goes here</divEl>
|
||||
```
|
||||
When dividing content into separate sections of a page.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer back to the notes for the correct syntax.
|
||||
Refer back to the notes for the correct answer.
|
||||
|
||||
---
|
||||
|
||||
```html
|
||||
<div>content goes here</div>
|
||||
```
|
||||
When grouping related content for styling purposes.
|
||||
|
||||
---
|
||||
|
||||
```html
|
||||
<divElement>content goes here</divElement>
|
||||
```
|
||||
When marking up the main heading of a page.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer back to the beginning of the lesson for the correct syntax.
|
||||
Refer back to the notes for the correct answer.
|
||||
|
||||
---
|
||||
|
||||
```html
|
||||
<divGroup>content goes here</divGroup>
|
||||
```
|
||||
When embedding media such as images or videos.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Refer back to the notes for the correct syntax.
|
||||
Refer back to the notes for the correct answer.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user