What are children

Tell us what’s happening:
Describe your issue in detail here.
what is children and if so please explain like your explaining to a 5 year old
thanks

  **Your code so far**

<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 geass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<p>Purr jump eat the geass 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/96.0.4664.45 Safari/537.36

Challenge: Introduction to HTML5 Elements

Link to the challenge:

Just think as a family, in the following code:

<main> 
  <h1>Hello World</h1>
  <p>Hello Paragraph</p>
</main>

<main> is the parent and the element inside are the children, whatever the element is inside another element is it’s child element

Note: an element is everything that has a tag, you can identify a tag by this symbols <> and the closing tags </>, remember that

1 Like

HTML has a hierarchy, like a tree. We often use a family tree as a metaphor. For example:

<main>
  <h1>My title</h1>
  <div>
    <p>Howdy!</p>
    <p>How you doin'?</p>
  </div>
</main>

In this we have a structure like this:

  p      p
  |      |
   \    /
     div  h1
      |   |
      \   /
      main

You can see how that is a tree? We say that the div and the h1 are children of main, or we can say that main is their parent. We could also say that the div and the h1 are siblings. We could say that the ps are siblings and are also children of the div. We could also say that they are grandchildren of main (and that it is their grandparent).

The metaphor kind of breaks down after that. More generally, you could say that main is an ancestor of main or that they are all decedents of main.

Does that makes sense?