HTML5 main Tag

As the name tells, the HTML5 main tag allows you to specify the key content of a document. Whatever you write under the <main> tag should be unique. It shouldn’t include the content which is included and repeated on every page, such as copyright information, logo, sidebars, etc.


Here’s the output, we’re printing the content for World Sports here with headings Football and Cricket under the <article> element. All the content is our key content, so we added under the HTML5 <main> element,

HTML5 Main Tag

HTML5 header Tag
HTML5 mark Tag
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading