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>
<main>
<h1>catphotoapp</h1>
<h2>cat photos</h2>
<!-- TODO :Add a link to cat photos-->
<p> Click to view more cat photos </p>
</main>

<!-- User Editable Region -->

  
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; TECNO KD7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36

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

Link to the challenge:

Welcome to our community!

You have typed in the same code twice.

Restart step.

Add the opening <main> tag before the h1 element, and the closing </main> tag after the p element.

Thanks so much for getting back.
But can you please show an example?

An example will be very much appreciated please

The system is saying that i did not get the closing main tag right and I’m like how?

We cannot write the solutions. If you have made changes to your code, please post your latest code here.

I have not changed anything yet because I have not understood how there’s more than 1 h1 element in the code.
I only used one.
I need to understand the suplus element

I would start by resetting the code. Do you see the reset button (right next to the Ask for Help button)?

Yes, I do I can see the reset button clearly

You should click that button.

Then only add the <main> tag on line 3 and the closing </main> tag on line 8

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