0
0
HTMLmarkup~20 mins

Headings (h1–h6) in HTML - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Heading Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
1:30remaining
Visual difference between heading levels
Look at the following HTML snippet. Which heading will appear largest on the page?
HTML
<h1>Heading One</h1>
<h3>Heading Three</h3>
<h6>Heading Six</h6>
AThe &lt;h6&gt; heading
BThe &lt;h1&gt; heading
CThe &lt;h3&gt; heading
DAll headings appear the same size
Attempts:
2 left
💡 Hint
Remember, heading tags from h1 to h6 decrease in size.
🧠 Conceptual
intermediate
2:00remaining
Proper use of heading levels for accessibility
Why is it important to use heading tags (<h1> to <h6>) in order without skipping levels?
ABecause skipping levels changes the font color automatically
BBecause browsers will not display headings if levels are skipped
CBecause screen readers rely on heading order to navigate content
DBecause headings must always be used in pairs
Attempts:
2 left
💡 Hint
Think about how people who use assistive technology read web pages.
📝 Syntax
advanced
1:30remaining
Identify the invalid heading tag
Which of these heading tags is NOT valid HTML5?
A<h0>Title</h0>
B<h1>Title</h1>
C<h4>Title</h4>
D<h6>Title</h6>
Attempts:
2 left
💡 Hint
Valid heading tags are numbered from 1 to 6.
selector
advanced
1:30remaining
CSS selector for all heading tags
Which CSS selector will select all heading tags from <h1> to <h6>?
Ah*
Bheading
Ch1-h6
Dh1, h2, h3, h4, h5, h6
Attempts:
2 left
💡 Hint
Think about how to list multiple selectors separated by commas.
accessibility
expert
2:00remaining
Screen reader behavior with multiple <h1> tags
What happens when a webpage uses multiple <h1> tags for different sections?
AScreen readers treat each &lt;h1&gt; as a new main section, improving navigation
BScreen readers treat all &lt;h1&gt; tags as one heading
CScreen readers crash or stop reading the page
DScreen readers ignore all but the first &lt;h1&gt; tag
Attempts:
2 left
💡 Hint
Modern HTML5 allows multiple <h1> tags if used correctly.