Where should i add main's closing tag?

Tell us what’s happening:
Describe your issue in detail here.

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

User Agent is: Mozilla/5.0 (Linux; Android 11; SM-T505) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36

Challenge: Step 5

Link to the challenge:

Hi @yashila, and welcome to the forum!

Remember that a html element is composed of:

  • the opening tag
  • the closing tag
  • any text between the opening and closing tags

The instructions ask you to add a <main> opening tag after the h1 element.
So the <main> opening tag needs to be after the h1 closing tag.

Then you need to add a </main> closing tag after the p element.
So that needs to be after the p element’s closing tag.

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