Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
On the actual Preview it says that my image is a link but I still get an error ( You should only add one opening anchor (a) tag. Please remove any extras.)

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <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"</a>
    <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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

Hey! It looks like you forgot to properly close your a tag.

1 Like

Isnt that how you close an anchor ()

// destination-link          link text
           |                     |
<a href="https://google.com"> a link to google </a>

ahh so i forgot the text and the > thing

1 Like

Thankl you staranbeer

Well not the text, if you put anything inside of the a tag, it becomes a link and in this challenge, you’re supposed to turn the image into a link, so just put the img inside of the a tag.

Yup it works now thx

A cute orange cat lying on its back.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').