Learn HTML by Building a Cat Photo App - Step 5

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> 
</main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

The instructions say:

Identify the main section of this page by adding a <main> opening tag after the h1 element, and a </main> closing tag after the p element.

I see that you added a main closing tag in the correct place.
The only problem is the location of the main opening tag.
It needs to be after the h1 element.

Recall that an h1 element is made of an opening and a closing tag. So the whole element is encompassed by <h1>...</h1>.
So just place the main opening tag after this element (not in the middle of the element).

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