HTML & CSS · Junior · Question 3 of 75

How many visible <main> elements can a page have, and what is it for?

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>.

Further reading

Problem with a question

HTML & CSS · Junior · question 3

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz