HTML & CSS · Junior · Question 3 of 75
How many visible <main> elements can a page have, and what is it for?
- 1Any number - one in each section of the page
- ✓Correct answer: One - it holds the main unique content of the page
- 3None - the element is deprecated and replaced by
<section>
Explanation
<main> marks the main content of the document that is unique to the page (without header, menu and footer). Only one may be visible (others need the hidden attribute). It is a landmark for screen readers: users can jump straight to the content. <section> is a thematic section, not a replacement for <main>.