Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

i need help with level 5 i don t even understand the meaning of main

Your code so far

<main> html </main>

<!-- User Editable Region -->

  <main> <body <h1>CatPhotoApp</h1></main>
    <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/138.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

Main is where the bulk, or main part, of your code should go. Is everything you want to do within the block of code?

3 Likes

I feel you should reset your code, because your html opening and closing tag has to be there, so after that you insert the main opening tag before the h1 element <h1>...</h1> then the closing tag after the p element

Hello @darasimi01!

Both @shilohks and @Debug_Diva have provided good guidance.

Here is the example for this step.

<main>
  <h1>Most important content of the document</h1>
  <p>Some more important content...</p>
</main>

Please note that the opening main tag is above the h1 element.
The closing main tag is below the p element.

You are doing good. Happy coding! :blush:

2 Likes

thank you all for your help i have passed

2 Likes