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
advanced
2:00remaining
CSS selector for semantic elements
Which CSS selector will select all semantic sectioning elements in HTML5?
Aheader, footer, nav, section, article, aside
Bdiv, span, p, a
C*
D.semantic
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
expert
2:00remaining
Accessibility benefit of semantic elements
Why do semantic HTML elements improve accessibility for screen reader users?
AThey provide meaningful landmarks and structure for navigation
BThey prevent users from copying content
CThey reduce page load time by using fewer tags
DThey automatically add color contrast for better visibility
Attempts:
2 left
💡 Hint
Think about how screen readers use page structure.
✗ Incorrect
Semantic elements like
Practice
(1/5)
1. Which of the following is a semantic HTML element?
easy
A. <article>
B. <div>
C. <span>
D. <b>
Solution
Step 1: Understand semantic elements
Semantic elements clearly describe their meaning, like <article> which represents an independent piece of content.
Step 2: Identify non-semantic elements
<div> and <span> are generic containers without meaning. <b> is a presentational element without semantic meaning.