0
0
HTMLmarkup~20 mins

Why semantic HTML matters - Challenge Your Understanding

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
Why use semantic HTML tags?
Which of the following is the main reason to use semantic HTML tags like
,
AThey improve accessibility by helping screen readers understand the page structure.
BThey make the page load faster by reducing file size.
CThey automatically add colors and fonts to the page.
DThey prevent the page from being indexed by search engines.
Attempts:
2 left
💡 Hint
Think about how assistive technologies read web pages.
📝 Syntax
intermediate
1:30remaining
Identify the semantic HTML tag for navigation
Which HTML tag is the correct semantic element to wrap a website's main navigation links?
A<nav>
B<section>
C<aside>
D<article>
Attempts:
2 left
💡 Hint
This tag is specifically designed for navigation menus.
rendering
advanced
2:00remaining
Effect of semantic tags on browser rendering and SEO
What visible difference will you see in a browser when replacing multiple
tags with semantic tags like
and
without CSS?
ASemantic tags add default colors and borders to the content.
BNo visible difference; semantic tags do not change default browser rendering.
CSemantic tags automatically center the content on the page.
DSemantic tags hide the content from the browser display.
Attempts:
2 left
💡 Hint
Think about how browsers treat new HTML5 tags by default.
selector
advanced
1:30remaining
CSS selector for semantic elements
Which CSS selector correctly targets all semantic
elements inside a
element?
Asection main
Bsection > main
Cmain > section
Dmain section
Attempts:
2 left
💡 Hint
Think about descendant selectors in CSS.
accessibility
expert
2:30remaining
ARIA roles and semantic HTML
If a developer uses a
to create a navigation menu instead of a
Arole="main"
Brole="banner"
Crole="navigation"
Drole="contentinfo"
Attempts:
2 left
💡 Hint
ARIA roles describe the purpose of elements to assistive technologies.