To meet accessability standards, should every page have a <main>
tag? I've noticed that major websites sometimes use the <main>
tag in their pages, and sometimes they do not. Do any of the major accessability standards dictate or suggest that every page should have a <main>
tag? It seems to make sense, but I'm also not sure what the accessability consequences of not having one are.
Yes, every html page should/could have the main tag. You must think this tag, as a container to show the main information. It´s not a mandatory tag, but IMO it´s a good practice.
Citing from Mozilla Developers Network:
The HTML
<main>
element represents the main content of the of a document or application. The main content area consists of content that is directly related to, or expands upon the central topic of a document or the central functionality of an application.
More information can be found here.
I hope it helps you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With