Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

The main element is used to represent the main content of the body of an HTML document. Content inside the main element should be unique to the document and should not be repeated in other parts of the document.

Example Code

Most important content of the document

Some more important content...

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

Your code so far


<!-- User Editable Region -->

 html
 <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/131.0.0.0 Safari/537.36 Edg/131.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

Hi. You don’t write out the code in the example. Reset your code to get it how it was. The last paragraph tells you where to add the opening and closing tags for the main element for the cat photo app code. Don’t change anyother code. Your html opening tag has lost its <>.