Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening: what do mean by Your main element’s closing tag should be below the p element. You have them in the wrong order.

Describe your issue in detail here.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  <main><h1p></main>
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

ok how do I get the p below the main elements

no, you need to have the main element around everything else, that means that you put the opening tag (remember that an opening tag is like <elementName>) before the elements that main has to contain, and the closing tag (remember that a closing tag is like </elementName>) after everything that the main element has to contain
Remeber that the main element needs to contain the h1 element, the h2 element, the comment and the p element

im still lost cuz what do they mean by this line :
Your main element’s closing tag should be below the p element.

you have this p element, as it has to go inside main you need to put the main closing tag below it

what do you mean it has to go inside the mean

you are creating a main element that has to contain the elements in the page, so you need to put the h1, h2 and p elements inside it

thanks i finally got it

1 Like

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