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

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