Introduction to HTML5 Elements :<

Tell us what’s happening:

Your code so far


<header>
<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>
</header>
<body>
<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>
</body>
       

```what means"The main element should have two paragraph elements as children.?

**Your browser information:**

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

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

You can think of HTML a bit like a family tree (adapted from Wikipedia):

           Cersei
             |           
   +---------+---------+     
   |         |         |    
Joffrey   Myrcella   Tommen

In HTML, that would look like this:

<cersei>
  <joffrey></joffrey>
  <myrcella></myrcella>
  <tommen></tommen>
</cersei>
  • joffrey, myrcella, and tommen are the children of cersei
  • cersei is the parent of joffrey, myrcella, and tommen

You need to have a main element with two p elements as children.

2 Likes

Right now, your <main> element has one child that is a <p> element…

it needs to be two.

ETA: Beat me to it @lionel-rowe :smile:

2 Likes