Introduction to HTML5 Elements main tag using

**Tell us what’s happening:**I can’t use main tag .Would you please tell me how to use!!!

Your code so far


<h2>CatPhotoApp</h2>

<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>
<main>
<p>Purr jump eat the grass rip the couch scratched,sunbath,shed everywhere rip the couch sleep in the sink fluffy fur  catnip scratched </p>
</main>

Your browser information:

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

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

You are supposed to have two p elements in your main tag. You have one. The other p element is outside your main element.

sir would you give me an example !!

“Inside” means that it is between the opening and closing tags. Your paragraph that begins “Purr jump eat” is inside the main element. The other one is not.

1 Like

Yes main element comes before the 1st paragraph element and then after the last one. You now have the 1st main element after the first pargaraph

1 Like