0
0
HTMLmarkup~20 mins

Semantic vs non-semantic elements in HTML - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Semantic HTML Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the semantic element
Which of the following HTML elements is semantic and clearly describes its content?
A<section>
B<span>
C<article>
D<div>
Attempts:
2 left
💡 Hint
Semantic elements describe the meaning of their content, not just structure.
📝 Syntax
intermediate
2:00remaining
Which element is non-semantic?
Which HTML element below is considered non-semantic because it does not provide meaning about its content?
A<header>
B<div>
C<footer>
D<nav>
Attempts:
2 left
💡 Hint
Non-semantic elements are used only for grouping or styling without describing content.
rendering
advanced
2: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>
ATwo headings styled differently by default
BAn error message in the browser
COnly the header's heading is visible
DTwo identical headings with no visual difference
Attempts:
2 left
💡 Hint
Browsers apply default styles mostly to headings, not containers.
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.
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.