2 paragraph element as children

Tell us what’s happening:

what does it mean when it says "the main element should have 2 paragraph element 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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Safari/605.1.15.

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

The main element needs to have another p element within the main element so something like:

<main>
<p> p1 </p>
<p> p2 </p>
</main>

above, the main element is the parent and the 2 p elements are direct descendants or children of the main element

1 Like

Hi Kaykey,

Another way to think about the challenge is as an upside down tree structure. Main has two sub-branches. In this scenario they are paragraphs.

                 main
    paragraph            paragraph

The main element should contain two paragraphs. In your current solution, main only contains one paragraph element.

Best of Luck!