Learn HTML by Building a Cat Photo App - Step 5

Describe your issue in detail here.
i do not understand the step

  **Your code so far**
  <h1 main></p main>
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

You’ve added and changed some things you weren’t supposed to. I would restart the step to get the original HTML back. The only thing you want to do is add an opening <main> tag and a closing </main> tag. You will place the opening tag right below the h1 element. Do not make any changes to the h1 element, it should stay exactly the same as it is. The entire h1 element includes both the opening and closing h1 tags plus the text between those two tags. So when you add the <main> tag after the h1 element that means you add it after the entire h1 element.

And the same thing applies for the p element as well. So you want to add the closing </main> tag after the entire p element.

1 Like

This helped me, however; my issue was my beginning tage placement. The program was telling me my closing tag was in the wrong place over and over, but it was my opening tag that was in the wrong place. Threw me off. Thank you for this detailed description.

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