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


<!-- User Editable Region -->

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

<!-- User Editable Region -->


Your browser information:

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

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

Link to the challenge:

Please Tell us what’s happening in your own words

In the future its better to fill out this part when asking a question so we know how to help you

For this challenge look at the direction on where the ending main tag is supposed to go again


I can’t get pass step 5, it said " Your main element’s closing tag should be below the p element. You have them in the wrong order.

First thing, You need to remove the h1, p, and the closing main tag here</main> none of that should be here. You use the h1 and p that the challenge already provided, so remove all of that.

Then as the error says "

You need to add the closing main tag </main> where the error is telling you to add it which is after the p element. Which means after the </p>

To recap, your starting main should be above the h1 that the challenge provided. Your closing main goes after the closing p element that the challenge provided


thanks for the help sir.


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