Hello, I need to add a <main>
opening tag before the h1
element, and a </main>
closing tag after the p
element. I can’t really figure out what is wrong because when I run this code it gives me the hint that says :
“Your main
element’s closing tag should be below the p
element. You have them in the wrong order.”
I do the exact same thing the hint says but it keeps getting rejected.
My 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/109.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 5
Link to the challenge: