Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
Describe your issue in detail here.
I have try pleasing my main element below p element as instructed but it keeps on denying

  **Your code so far**
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

I’ve included the code you are using for easier reference.
If you look back at the instructions, they say:

Identify the main section of this page by adding a <main> opening tag after the h1 element, and a </main> closing tag after the p element.

So let’s parse that instruction to see what they want us to do.
There are 3 sections to the instruction which require 2 actions from you:

1- add…a <main> opening tag => I see that you did that so good job there
2- …after the h1 element => okay so you added it after the opening tag of h1, but is that what they wanted? In fact they wanted you to add the main tag after the “h1 element” and an element in html is made up of the start AND the end. So then move the main tag to a line after the end of the h1 element.
3- …and a </main> closing tag after the p element => so this last part of the instruction is asking you to add the closing tag for main. Have you done it?

hope this helps

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.