Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should every html page a main tag? [closed]

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.

like image 487
Bootstrap4 Avatar asked Jun 01 '17 13:06

Bootstrap4


1 Answers

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

like image 98
Nuno Bentes Avatar answered Oct 12 '22 23:10

Nuno Bentes