Introduction to HTML5 Elements main tags not working

Tell us what’s happening:

Whatever is wrong with this code? It’s not working, yet it seems to have everything perfectly done.

Your code so far


<h2>CatPhotoApp</h2>
<header>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, </p>
</header>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/introduction-to-html5-elements

Hi,
I think you should use main instead of the header
" Wrap the paragraphs with an opening and closing **main** tag.

It works, though the word main is strangely missing from the list. Thanks for the help.

These include header , footer , nav , video , article , section and others.
Main is one of the others :grinning:

But what I can’t understand is I used header, then article, but they didn’t work until i tried your suggestion of main and it worked. Seems these tags aren’t created equal or I missed something.

Well, the assignment is specifically asking you to use the main tag.

The HTML tags/elements described in the assignment have semantic meaning, so no they are not “created equal”, just like all words are words but mean, and convey, different things.

It was mentioned to use “main” tags at the end of the challenge.:sweat_smile: