Learn HTML by Building a Cat Photo App - Step 5

I’m havinf trouble putting main.

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

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

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

Link to the challenge:

Hello and welcome to our community,
You put two elements’ opening tag in one line, elements start with one opining tag and end with a closin one which comes with a forward slash

Main element place mustn’t be there, must be ?

I see sir. It’s telling me to put after h1. Where exactly should i put it?

As you have already mentioned exactly after h1, close h1 and open another element tag.

1 Like

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.

1 Like

Thank you so much. I understand now.
So you can’t put two elements in one?

In some cases you can, but remember to close the first one and open the next.

1 Like

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