Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

Most important content of the document

Some more important content

Please check the above code and tell me how to correct it because I'm following instructions and I'm being told my code does not pass and I'm stuck in step 5- Learn HTML by building a Cat Photo App

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  <main>
  <h1>Most important content of the document</h1>
  <p>Some more important content</p>
  </main>
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Everyone loves cute cats online!</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/130.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

you dont have to copy paste the code that they are giving to you, you have to add a main element before the h1 element and close it after the p element

2 Likes

Hi there and welcome to the FCC forum.
Reset the challenge step and add main opening tag before the h1 element on a separate line, then add the main closing tag after the p element on a separate line.
Tags are written like below example:

<opening> </closing>

You can see two empty lines in the challenge editor, that are for main element opening and closing tags.