Challenge - 5 Problems
HTML Browser Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
How does a browser interpret HTML tags?
When a browser reads an HTML file, what does it do with the tags it finds?
Attempts:
2 left
💡 Hint
Think about how the browser knows where each element is placed on the page.
✗ Incorrect
Browsers read HTML tags to create a tree called the Document Object Model (DOM). This tree helps the browser understand the structure and content of the page to display it correctly.
📝 Syntax
intermediate2:00remaining
What error occurs with missing closing tags?
Consider this HTML snippet:
What problem will the browser face when reading this?
<div><p>Hello</div>
What problem will the browser face when reading this?
Attempts:
2 left
💡 Hint
Browsers try to fix small mistakes to still show the page.
✗ Incorrect
Browsers are forgiving and will auto-close tags like <p> if a closing tag is missing, so the content still appears.
❓ rendering
advanced2:00remaining
What is the visual output of nested HTML elements?
Given this HTML:
How will the browser display this content?
<section>
<article>
<h1>Title</h1>
<p>Paragraph</p>
</article>
</section>How will the browser display this content?
Attempts:
2 left
💡 Hint
Think about default styles browsers apply to headings and paragraphs.
✗ Incorrect
Browsers display <h1> as a large bold heading above the paragraph, with spacing separating them.
❓ selector
advanced2:00remaining
Which CSS selector targets all direct children of a <nav> element?
You want to style only the immediate child elements inside a <nav> tag. Which CSS selector should you use?
Attempts:
2 left
💡 Hint
The '>' symbol in CSS means direct child.
✗ Incorrect
The selector nav > * selects all elements that are direct children of <nav>.
❓ accessibility
expert2:00remaining
What is the effect of missing ARIA roles in a complex web page?
A web page has many sections and interactive elements but does not use ARIA roles. What problem will users with screen readers most likely face?
Attempts:
2 left
💡 Hint
ARIA roles help assistive technologies understand page parts.
✗ Incorrect
Without ARIA roles, screen readers can struggle to identify landmarks and interactive elements, making it hard for users to navigate.