I am stuck I seem to fail to add two main what does this mean the main element should have two paragraph element as children please assist

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


<h1>Hello World</h1>
<p>Hello Paragraph</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>
</pp>


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

Challenge: Introduction to HTML5 Elements

Link to the challenge:

You have errors in your code before we even get to the tests. You have a </main> but no <main>. I don’t know what </pp> is but it also lacks an opener. (But shouldn’t exist anyway.)

I would back up. Hit the Reset All Code button.

You start out with this:

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

These are your instructions:

Create a second p element with the following kitty ipsum text: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

Then, create a main element and nest only the two p elements inside the main element.

Read those instructions. Ask if there is something you don’t understand.

As an example, above that, you are given this:

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

That is an h1 and a p nested in a main. You will have something that looks like that except that it will nest two p elements, the existing one and the one you create. Note that it says, “…and nest only the two p elements…” so that h2 in the original code will still be there, but will not be inside (nested in) the main.

Give it a try and see if you can figure it out with that.

Now I am not getting the part that says " The main element should have two paragraphs elements as children please help its the only 1 I’m getting wrong, what is it that I am not doing right?

In the example:

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

main has two children, and h1 and a p. They are “nested” in the main, between it’s opening and closing elements. You need two p elements nested (as children) in your main. One already exists, you have instructions to create the other.

If you are still having trouble, please show the code that you are trying so we can guide you.

https://www.freecodecamp.org/learn/responsive-web-design I am doing introduction to HTML5 elements

How do I show I am a biggineer in all this coding and it is frustrating me

https://www.freecodecamp.org/learn/responsive-web-design this is where I am stuck

Cut and paste your code into the message. Put three backticks on the line before and the line after to make it format correctly. I’ll put a message after this one to show you how. Posting a link to the challenge only shows us the challenge - the code is stored in your browser and we can’t see it.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

figured it out at last :muscle: thanks

1 Like