Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening

After nesting the anchor (a) element, the only p element content visible in the browser should be See more cat photos in our gallery. Double check the text, spacing, or punctuation of both the p and nested anchor element

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more cat photos in our gallery.</p>
      <p>
        <a href="https://freecatphotoapp.com">cat photos</a>
      </p> 
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

Your <a> element needs to wrap around the words “cat photos” inside the <p> element.

Hi there and welcome to our community!

You have the right idea (and your anchor element itself is spot on) but you shouldn’t be creating a separate p element or duplicating the text ‘cat photos’. Instead, simply wrap your anchor tags around the exisiting text ‘cat photos’ within the original p element.

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