Introduction to HTML5 Elements111

Tell us what’s happening:

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, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
   </article>

Your browser information:

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

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

HTML works by wrapping some text in a pair of tags, like <p>Some text</p> or <h1>Some text</h1>. So p and /p are a pair, h1 and /h1 are a pair. header and /article aren’t a pair.

And the description doesn’t tell you to use the article element or the header element, it tells you to use the main element

replace the closing tag of ARTICLE with header closing tag.

The task is " Wrap the paragraphs with an opening and closing main tag."

  1. There is no main tag in your code. Instead, you used header and article tags.
  2. Main tag is a paired tag which means that it must have an opening main tag (<main>) and a closing main tag (</main>)