A main element with two child elements nested inside it: help me on this pls

**Tell us what’s happening:**ok i am new in HTML in am coding an app and it couldn’t run and it saidn that ’ Each of your p elements should have a closing tag.’ and that ’ The opening main tag should come before the first paragraph tag.’
pls how do i do that?

Your code so far

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

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


<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>
<p>Purr jump eat grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p> <!--the second <p> element has been added-->

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

<main> <!-- The opening <main> element has been added -->
 <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 grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
 </main> <!-- The closing <main> element has been added -->

Your browser information:

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

Challenge: Introduction to HTML5 Elements

Link to the challenge:

Welcome to the forum @EbenezerC: :smiley:

1.- Check your Coments : There’s an error.

  1. Check your Tag Next to the comment : There’s the second error.

Saludos!!! :smiley: :smiley: :smiley:

1 Like

is that the code you have in the editor? if so you have too many paragraph elements and too many h2 element

you should have just one h2 element, one main element and two paragraph elements

1 Like

Thanks All…
the problem is fixed.:+1: