Tell us what’s happening:
Hello, I was starting programing in HTML and in the Step 5 I don’t know why he says that the code is bad. The step 5 says: “Identify the main section of this page by adding a <main>
opening tag before the h1
element, and a </main>
closing tag after the p
element.” But then it says: "Sorry, your code does not pass. Don’t give up.
Your main
element’s opening tag should be below the body
element’s opening tag. You have them in the wrong order."
But I put ‘main’ element’s opening tag below the ‘body’ but he continues saying that is wrong. Can you help me please ?
Your code so far
<html>
<body>
<!-- User Editable Region -->
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more cat photos in our gallery.</p>
</main>
<!-- User Editable Region -->
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Challenge Information:
Learn HTML by Building a Cat Photo App - Step 5