What is main tag used for. I don't understand at all

Tell us what’s happening:
I don’t understand what the main element is used for. I am so sorry you all have commented a lot but still I am so dumb. sorry guys but pls comment in an easier way.

Your code so far


<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 12871.76.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.103 Safari/537.36.

Challenge: Introduction to HTML5 Elements

Link to the challenge:

You are not dumb, you are just a newbie. don’t worry.
Generally, Main tag is not necessary for loading the webpage, but we better consider it while coding.
Take a look at the w3schools description:

The <main> tag specifies the main content of a document.

The content inside the <main> element should be unique to the document. It should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms.

So its more useful for search engine while crawling your website, they will understand that OK it’s your main part, this is the article part this is the header, etc. On the other hand, it’s good for yourself too, you can organize your codes better. Keep in mind, the more standard you code the more professional you become.


Adding to what @itsbob said, think it as a way separate relevant block of code and content.

Main content of the page (if it’s about cooking recipe site, than the recipe should go inside the <main></main> for example).

Irrelevant code should go elsewhere appropriate. A copyright notice of the page should go inside <footer></footer> as an example.


Thank you so much. Now I did really understand a lot.

Thank you so much. your comment was really helpful.