How to turn image into link, step 14

Tell us what’s happening:
Describe your issue in detail here.
I keep trying to add the <a element around the image but it keeps saying I don’t have the image link even though i do

  **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>
   <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Step 14

Link to the challenge:

I don’t see an anchor element around the image?

yeah i know, im asking how to insert the anchor

What did you try? I can’t tell you what’s wrong if you don’t show what you tried.

<a href="https://freecatphotos.com" in front of the <img, then ></a> at the end of the src

What is your full code? That is malformed syntax that you shared.

<a href="htt[s://freecatphotoapp.com" <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"></a>

wait i copied and pasted and it didnt show the whole thing

I’ve edited your post for readability. 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 (').

Your opening anchor tag has no >

Hi JeremyLT,
Asking you to put the in between the tag. Then inside href=“” put the link. This worked for me.
Mod Edit: SOLUTION REDACTED

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Noted. Thanks, I will do that.

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