The Directions 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
I put before h1 and I get an error saying that has to be under the body element.
Can someone help me and explain what I’m doing wrong?
In the past the direction says after but now it says before.
Your code so far
<html> <body> <main> <h1>CatPhotoApp</h1> <h2>Cat Photos</h2> <!-- TODO: Add link to cat photos --> <p>Click here to view more cat photos.</p> </main> </body> </html>
Your browser information:
User Agent is:
Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 5
Link to the challenge: