Learn HTML by Building a Cat Photo App - Step 16

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    <main>
      <h1>CatPhotoApp</h1>

     <section> <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p></section>
      <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>

    </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.41

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

Link to the challenge:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-16`

Cat Photos

`

You only nested the h2, comment, and p elements in a section. You left out the a element.

I can see why this might be confusing. The a element inside of the p element doesn’t count as the a element the instructions are asking you to nest in the section. The instructions are referring to the a element below the p element.

1 Like

Put your closing section at the end of the last closing a element

at the end of the point where you nestled your img element within the a element

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