Challenge - 5 Problems
Semantic HTML Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Identify the semantic element
Which of the following HTML elements is semantic and clearly describes its content?
Attempts:
2 left
💡 Hint
Semantic elements describe the meaning of their content, not just structure.
✗ Incorrect
The element is semantic because it represents a self-contained composition in a document, like a blog post or news story.
and are non-semantic containers. is also semantic but is more general than .
📝 Syntax
intermediate2:00remaining
Which element is non-semantic?
Which HTML element below is considered non-semantic because it does not provide meaning about its content?
Attempts:
2 left
💡 Hint
Non-semantic elements are used only for grouping or styling without describing content.
✗ Incorrect
is a generic container with no semantic meaning. ,
❓ rendering
advanced2:00remaining
Visual difference between semantic and non-semantic elements
Given the following HTML, what will the browser display visually?
HTML
<header> <h1>Welcome</h1> </header> <div> <h1>Welcome</h1> </div>
Attempts:
2 left
💡 Hint
Browsers apply default styles mostly to headings, not containers.
✗ Incorrect
Both and
are block-level containers. The
inside each looks the same by default. Semantic elements do not change default visual style but help with meaning and accessibility.
❓ selector
advanced2:00remaining
CSS selector for semantic elements
Which CSS selector will select all semantic sectioning elements in HTML5?
Attempts:
2 left
💡 Hint
Semantic sectioning elements include those that define document structure.
✗ Incorrect
The selector 'header, footer, nav, section, article, aside' targets all main semantic sectioning elements. Other options select non-semantic elements or classes.
❓ accessibility
expert2:00remaining
Accessibility benefit of semantic elements
Why do semantic HTML elements improve accessibility for screen reader users?
Attempts:
2 left
💡 Hint
Think about how screen readers use page structure.
✗ Incorrect
Semantic elements like