Its telling me the main element should have two paragraphs elements as children,can you help?

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

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 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/91.0.4472.124 Safari/537.36

Challenge: Introduction to HTML5 Elements

Link to the challenge:

Yes, all these error…

Your code should have one main element.

The main element should have two paragraph elements as children.

The opening main tag should come before the first paragraph tag.

The closing main tag should come after the second closing paragraph tag.

Are because you don’t have a “main” section, a section enclosed in main tags.

Notice the example in the description:

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

You need to do something like that.

it is always best if you post your code instead of a screenshot, but remember that capitalisation matters

2 Likes

Yes, what ilenia says.

But looking at your code, I see that one of your html tags looks uppercase - in html they are always lowercase. I could test your code, but you provided an image.

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

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 grass rip the couch scratched sunbathe, shed everywhererip 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/91.0.4472.124 Safari/537.36

Challenge: Introduction to HTML5 Elements

Link to the challenge:

you still have an html tag in uppercase

where? in

?

this one is uppercase, it shouldn’t be

thanks it worked out

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.