Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
Describe your issue in detail here
Im confused about where I should put the main In the CatApp
Your code so far

<html>
  <body>

<!-- User Editable Region -->

    
   <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 (X11; CrOS x86_64 15183.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 5

Link to the challenge:

and the hints are not helping me for this one

the main element is usually the main content of the body, so putting it after your body should work I think

1 Like

the element is similar to the body in the fact that there can only be one main element. represents the main content of a webpage. think of as being the home and as being the host. So main goes within the body but before everything else.

1 Like
<body>
<main>
<h1></h1>
<p></p>
</main>
</body>
1 Like

thanks that helped me a lot

thank you it worked thanks

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