Jump Straight to the Content Using the main Element
HTML5 introduced several new elements that give developers more options while also incorporating accessibility features. These tags includemain,header,footer,nav,article, andsection, among others.
By default, a browser renders these elements similar to the humblediv. However, using them where appropriate gives additional meaning to your markup. The tag name alone can indicate the type of information it contains, which adds semantic meaning to that content. Assistive technologies can access this information to provide better page summary or navigation options to their users.
Themainelement is used to wrap (you guessed it) the main content, and there should be only one per page. It's meant to surround the information related to your page's central topic. It's not meant to include items that repeat across pages, like navigation links or banners.
Themaintag also has an embedded landmark feature that assistive technology can use to navigate to the main content quickly. If you've ever seen a "Jump to Main Content" link at the top of a page, using themaintag automatically gives assistive devices that functionality.
Camper Cat has some big ideas for his ninja weapons page. Help him set up his markup by adding opening and closingmaintags between theheaderandfooter(covered in other challenges). Keep themaintags empty for now.
<header>
<h1>Weapons of the Ninja</h1>
</header>
<main></main>
<footer></footer>