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 -->
   </main><p>Click here to view more cat photos.</p>
 
</body>
</html>
  **<html>

CatPhotoApp

Cat Photos

Click here to view more cat photos.

I am having problems adding the main elements.

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

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

Link to the challenge:

Hello and welcome to the forum!

This exercise is asking you to:

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 is pasted here for convenience:

Looking at the code so far, do you see how you have learned how to create HTML elements like <html></html> and <body></body>?
And notice then that each element has an opening tag and a closing tag?
for eg. h1 has the opening tag <h1> and the closing tag </h1>

Just like the above body and h1 elements etc , the new element you are learning about here is called main works the same way. It has an opening tag <main> and a closing tag </main>

Knowing this, do you think you have added the element main correctly in your attempt?

Hint: you must add the opening tag after the h1 element and the closing tag after the p element.

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