Catphotoapp step 15

A cute orange cat lying on its back.

  <a href="https://freecatphotoapp.com">img src=https://freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg</a>
1 Like

sorry. … I was just trying to paste my code… The error message is " Your img element should be nested within your anchor element,

you have a missing <
(you deleted the starting < bracket from the img, put it back and it should work)

actually, you also deleted the > at the end of the img too
You have to not touch the image at all and just add the anchor

1 Like

What am I doing wrong??

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

Well, to begin with, you are posting in someone else’s topic again. I will move your post again…

Edit:
You want to make the img into a link. So this means the anchor opening tag has to go on the left side of the img, and the closing tag has to go on the right.

Try restarting the step then add the anchor tag to the left and right of the img as suggested.

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

Thank you…
Apologies for posting on another’s link… I’m a little new to FCC and am getting used to the protocol…

no worries. everyone makes that mistake at first. (that’s why there are moderators…)

“Hello, I’m determined, and thought having 12 hours off would kickstart my brain… No suck luck!!
So I just added the anchor but touch the img but still not working… I’m obviously doing something wrong but just can’t see it.”

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

<a href="A cute orange cat lying on its back.

"Ive typed my code in and it just shows the picture??

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

Recall that an opening anchor tag starts and ends with angled brackets like this:
<a href="a-link-here">

You have the closing anchor tag in the correct place but your opening tag is malformed.
Try to see the difference between my example and the opening tag you have…

‘’’
Do I keep the img code exactly how it is and just wrap the anchor code around it?
And is the alt message included?

‘’’
Thank you for your patience… I got it!!!
‘’’

1 Like