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
<h2>CatPhotoApp</h2>
<main>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere.
</p>
<p>
Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
</p>
</main>
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.
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.