Tell us what’s happening:
When I check for the code it tells me that the main closing tag must be below the p element, what does that mean?
Your code so far
<html>
<body>
<h1><main>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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 OPR/90.0.4480.100
Challenge: Learn HTML by Building a Cat Photo App - Step 5
Now I tried <h1><main>CatPhotoApp</h1> <h2>Cat Photos</h2> <!-- TODO: Add link to cat photos --> <p>Click here to view more cat photos</p></main>
but still it’s incorrect
Well the instructions say:
adding a <main> opening tag after the h1 element, and a </main> closing tag after the p element.
And you have added the <main> inside the h1 instead of after it (refer to my last post where I showed you the code indented? You can see the main tag is in the wrong place).
So just move it one line down so it is after the h1.
here is the correction. Please try to understand it before moving on to the next step or you will be stuck again quickly on harder stuff.
This is wrong because the main tag is inside the h1 but they want it after the h1.
So please move it below the </h1>
(the instructions said below so please move it below)