Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
I have tried to add the main just before < h1 > on the same line and I’ve tried adding < /main> just after < p> on the same line or a seprate line below it and I still can’t seem to pass the lesson. What am I doing wrong?
Describe your issue in detail here.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  <main>
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p></main>
  

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

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

Link to the challenge:

Again, it’s a weird anomaly with this course. You wouldn’t know this but you should also change the content of the p element to ‘See more cat photos in our gallery.’
Your code will then pass. You should put your closing main tag on the line below the p, though that’s not preventing you from passing the challenge.

1 Like

Thank you so much it worked. It was very confusing why nothing worked before.

The browser caches the old step’s html so the learner can use the CTRL-f5 method to force the browser to refresh the code and then proceed with the step as usual.