Learn HTML by Building a Cat Photo App - Step 16

I don’t know how to nest h2 , comment, p , and anchor (a ) elements in section element.

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a></p>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

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

Link to the challenge:

look at main on you code and where they are position. do you see that h1,h2,p and(a) are inside of the “main” element? That is what we call nesting. Now do the same thing but put h2,p and(a) only

still not working. also, can I just write any element name?

the only way you can do that is if you add your first section between h1 and h2. Then you put you second section between (a) and /main

what do u mean by that??

its telling me Your section element should have an opening tag. Opening tags have the following syntax: <elementName> .

<section>, this is how your opening section element should be.
</section> this is you closing section element.
including the information inside you p,h2 and(a)

oh I got it now. thank you

is not working for me to

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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