Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

Its saying put main element closing tag under the p which i put in a 2nd layer and next to it and it still doesn’t accept. I don’t understand what i am doing wrong

Your code so far

<html>
  <body>

<!-- User Editable Region -->

<main> 
<h1>  
</p> 
</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/126.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

please click the reset button to restart this step.

Then notice that the editor has the following 4 lines of code:


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

They want you to mark the beginning of the main section of this page and the end of the main section of this page by adding a main opening tag above the 4 lines and a main closing tag below the four lines.

This tells the browser that the 4 lines are constituting the ‘main’ part of the page.

Buddy This step is telling you to wrap these lines of Code into main element

Why do you need to need to do this that is explained in instructions !!

Hope you understand !!

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