Skip to content Skip to sidebar Skip to footer

How To Correctly Use The Html5
Element

I've done a few searches for my answer to my question, but I can't seem to get a straight answer other than the cut-and-pasted responses which DO NOT answer my question. My quest

Solution 1:

Yes you can use <main> tag in different pages of a website.

Answer A.

A document is short for HTML document, it means a valid html file. Not a html fragment.

There are 3 good uses for the <main>. It can help algorithms that scan web pages be more efficient. Quickly identify the main content, and as a consequence not process what is outside the main. It can be styled with a CSS rule. It can help users with screen readers.

Update: Inside work in progress, html specification, it is possible to have multiple <main>, as long as only 1 is visible.

https://w3c.github.io/html/grouping-content.html#elementdef-main

Post a Comment for "How To Correctly Use The Html5
Element"