It's telling me The main element should have two paragraph elements as children. can u help me?

Tell us what’s happening:

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 sumbathe,      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/69.0.3497.100 Safari/537.36.

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

“children” of an element are put inside that element

<parent>
  <child>
  <child>
</parent>
1 Like

still can’t run can u help me again

“the main element should have two paragraph elements as children”. Your code does not have two paragraph elements as children

Very simple answer: There have to be two main> elements, one at the start and one at the end.
all p> elements are between two main> elements just like the below,

main>
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

</main

Like that you are missing a lot of < and >

Thanks ieahleen, I noticed that, the page omits if the word has both ends < and > .
I had to edit my post.

You need to format your post, select the block of code and use the “preformatted text” (</>) button to format it

I was struggling with the exact same thing for about 30 mins and your answer helped me, thank you!

1 Like