Learn HTML by Building a Cat Photo App - Step 12

Not sure what I’m doing wrong with this code

In the text of your p element, turn the words cat photos into a link by adding opening and closing anchor (a ) tags around these words. Then set the href attribute to https://freecatphotoapp.com

See more <a cat photos in our gallery.

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

<!-- User Editable Region -->

      <p>See more <a cat photos</a> in our gallery.</p>
      <a href="https://freecatphotoapp.com">cat photos</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; CrOS x86_64 14816.131.5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

Hey.
This lesson does not require you to form a new Cat Photos text. Nest the existing text. You might have deleted it as it was in the paragraph element. I suggest you reset the lesson, then nest the text. No progress will be lost.

1 Like

Adding anchor tags around the words cat photos and setting the href attribute to https://freecatphotoapp.com is all done within the original p element. Also remember that anchor tags have an opening <> and a closing </>

I would reset and try again. Happy coding!

1 Like

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