Where do I place the closing main tag

Tell us what’s happening:
Introduction to HTML-CSS STEP 5
Describe your issue in detail here.
I am not sure where to place the closing main tag.
Objective of step 5 : 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.

  **Your code so far**

  <h1>  <main>  CatPhotoApp</h1>
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p> </main>

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

Challenge: Step 5

Link to the challenge:

The issue in the tests is that this isn’t in the right place. You need to put the opening main tag after the entire h1 element, which consists of an opening and closing tag.

1 Like

You have basically added the starting <main> tag as the content inside the h1 element.

Look at the body element, and notice how it is surrounding everything inside it. You need to do the same with the main element, but it should surround the h2 and p elements.


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