Introduction to HTML5 Elements issues

Tell us what’s happening:
It says that the main element should have two paragraph elements as children. I don’t know what I am doing wrong on this. This is happening inside the main brackets.

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 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

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

Think of your HTML tags as sandwiches. This challenge appears to be asking for a “main” sandwich with two slices (aka children) of “paragraph”.

How many slices are there in your “main” sandwich?

Thanks so much it worked. Even in the video example it showed me how to do it wrong way.

1 Like