The main
element should have two paragraph elements as children. <— what does this means “as children”?
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/72.0.3626.121 Safari/537.36
.
When an element is between another element’s opening and closing tags, that element is said to be a child of the other.
In your code, the <p>
element (starting with “Purr jump”) is a child of the <main>
element.
1 Like
So to complete the challenge given I would have to use parenthesis for “purr jump” ?
No. You need two <p>
elements as children for the <main>
element. So far you have one of them inside <main>
. The other <p>
is outside. Where do you put it?
this is how your code should look like, the two paragraphs are inside the <main> tag so that makes them its children. think of them as unborn children inside the uterus
<h2>CatPhotoApp</h2>
<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>
lets hope this was helpful
2 Likes
Definetly helpful thank you so much.