Introduction to HTML5 Elements help1

Tell us what’s happening:
Can someone help me more on this. I don’t know where to put the headers.

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

Your browser information:

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

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

If you mean these <main></main>, these are actually referred as tags. These should surround, or wrap, the two paragraphs you have. Think of how you wrap the h2 tags around some text and do the same thing but for the <p> tags.

Ok thank you this helped, but the last part says; “The main element should have two paragraph elements as children.”. Do you know what it means by this?

Chris4,

For that exercise just enclosed the two paragraphs between the main opening and closing tag. Hope this helps!

HTML tags act as a hierarchy in a parent/child relationship which helps organize your HTML, but also helps with CSS and styling your HTML document through inheritance.

“The main element should have two paragraph elements as children.”

Here is an example of this:

<main>
  <h1>Text</h1>
</main>

Depending on how you look at it, the h1 tag is a child of the main tag or the main tag is a parent of the h1 tag. Either way, the relationship is the same. When it comes to CSS, you can specify specific styling based on this relationship. You will learn more about this as you continue in the curriculum!