(Help) HTML 5 elements

Tell us what’s happening:

"The main element should have two paragraph elements as children."

I have NO clue what this means nor was it explained to me in in depth detail. Please assist because i been trying to pass this challenge for an hour now. Thank you in advance.

Your code so far



<h1>CatPhotoApp</h1>
<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> </h2>

Your browser information:

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

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

The main element should have two paragraph elements as children.

This is saying there needs to be two <p> elements as children to the main element. For example, notice the indents:

<main> <!-- Parent element -->
   <p> First paragraph </p> <!-- child element to the `main` element -->
   <p> Second paragraph </p> <!-- child element to the `main` element -->
</main>

Because the two p elements are both inside the closing </main> tag, basically inside them, that makes them children to that tag.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

If you want to compare your solution to others, use the Get a hint button on the challenge and there are alternative solutions you can compare yours to. Also, you can probably search older posts using the forum search feature or google the challenge name and find more there.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

1 Like

Helped out alot, unfortunately for me I’am a newbie at coding so simplistic things like this tend to be complex when it shouldnt be. Hopefully it will become second nature. I figured it out thanks

1 Like