Challenge - 5 Problems
HTML Structure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Identify the semantic element for main content
Which HTML5 semantic element is best used to wrap the main content of a webpage for better structure and accessibility?
Attempts:
2 left
💡 Hint
Think about the element that clearly defines the primary content of the page.
✗ Incorrect
📝 Syntax
intermediate1:30remaining
Find the error in this HTML snippet
What is wrong with this HTML snippet?
<header>
<h1>Welcome</h1>
<nav>
<ul>
<li>Home</li>
<li>About</li>
</ul>
</nav>
</header>Attempts:
2 left
💡 Hint
Check if all tags have matching closing tags.
✗ Incorrect
The first <li> tag is missing its closing tag </li>, which breaks the list structure.
❓ rendering
advanced1:30remaining
What will the browser display?
Given this HTML code:
What will the browser show visually?
<section> <h2>Title</h2> <p>Paragraph 1</p> <p>Paragraph 2</p> </section>
What will the browser show visually?
Attempts:
2 left
💡 Hint
Think about default block-level elements and their order.
✗ Incorrect
The <h2> and <p> tags are block elements and display in order, so the heading appears first, then the two paragraphs stacked below.
❓ selector
advanced1:30remaining
CSS selector for all direct children
Which CSS selector targets only the direct child <article> elements inside a <main> element?
Attempts:
2 left
💡 Hint
The '>' symbol means direct child in CSS selectors.
✗ Incorrect
'main > article' selects only <article> elements that are immediate children of <main>, not deeper descendants.
❓ accessibility
expert2:00remaining
Best practice for accessible navigation landmarks
Which is the best way to make a navigation menu accessible and clearly identified by screen readers?
Attempts:
2 left
💡 Hint
Screen readers rely on landmarks and labels to identify page regions.
✗ Incorrect
Using the semantic <nav> element combined with an aria-label helps screen readers understand the navigation's purpose clearly.