# How to turn image into link, step 14

**URL:** <https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [June 27, 2022, 6:26pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494 "2022-06-27T18:26:29Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sienna4786](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sienna4786/32/268734_2.png) [@sienna4786](https://forum.freecodecamp.org/u/sienna4786)\
**Post date:** [June 27, 2022, 6:26pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/1 "2022-06-27T18:26:29Z")

</div>

**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
<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:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-14)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 27, 2022, 6:27pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/2 "2022-06-27T18:27:49Z")

</div>

> [@sienna4786](#):
>
> ```auto
> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
> 
> ```

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

---

<div class="post-metadata">

**Author:** ![sienna4786](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sienna4786/32/268734_2.png) [@sienna4786](https://forum.freecodecamp.org/u/sienna4786)\
**Post date:** [June 27, 2022, 6:34pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/3 "2022-06-27T18:34:16Z")

</div>

yeah i know, im asking how to insert the anchor

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 27, 2022, 6:36pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/4 "2022-06-27T18:36:31Z")

</div>

> [@sienna4786](#):
>
> I keep trying to add the \<a element around the image

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

---

<div class="post-metadata">

**Author:** ![sienna4786](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sienna4786/32/268734_2.png) [@sienna4786](https://forum.freecodecamp.org/u/sienna4786)\
**Post date:** [June 27, 2022, 6:45pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/5 "2022-06-27T18:45:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 27, 2022, 6:48pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/6 "2022-06-27T18:48:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sienna4786](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sienna4786/32/268734_2.png) [@sienna4786](https://forum.freecodecamp.org/u/sienna4786)\
**Post date:** [June 27, 2022, 6:51pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/7 "2022-06-27T18:51:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sienna4786](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sienna4786/32/268734_2.png) [@sienna4786](https://forum.freecodecamp.org/u/sienna4786)\
**Post date:** [June 27, 2022, 6:52pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/8 "2022-06-27T18:52:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 27, 2022, 6:54pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/9 "2022-06-27T18:54:56Z")

</div>

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.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 27, 2022, 6:55pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/10 "2022-06-27T18:55:12Z")

</div>

> [@sienna4786](#):
>
> \<a href=“htt[s://freecatphotoapp.com”

Your opening anchor tag has no \>

---

<div class="post-metadata">

**Author:** ![tongm5](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@tongm5](https://forum.freecodecamp.org/u/tongm5)\
**Post date:** [June 27, 2022, 7:04pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/11 "2022-06-27T19:04:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [June 27, 2022, 7:05pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/12 "2022-06-27T19:05:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tongm5](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@tongm5](https://forum.freecodecamp.org/u/tongm5)\
**Post date:** [June 27, 2022, 7:12pm UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/13 "2022-06-27T19:12:26Z")

</div>

Noted. Thanks, I will do that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [December 27, 2022, 7:12am UTC](https://forum.freecodecamp.org/t/how-to-turn-image-into-link-step-14/522494/14 "2022-12-27T07:12:34Z")

</div>

Closed on December 27, 2022, 7:12am UTC

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