Learn HTML by Building a Cat Photo App - Step 15

How can I turn the image into a link? Where is (<a href=“…”) inserted below?

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

Instructions:
In previous steps you used an anchor element to turn text into a link. Other types of content can also be turned into a link by wrapping it in anchor tags.

Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s href attribute value.

1 Like

Will upload a screenshot:

Figured it out, but I haven’t figured out how to take down this post.

Please post actual code instead of a picture of code.


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 (').

Wow, that is incredibly helpful thank you, I really appreciate it!

We don’t give out full working solutions on the forum

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

If you need help please follow the steps I put in my last post. We ask that you make your own post instead of trying to get help on another users post

Thanks.

oh i didnt quite understand it. my bad. thank you so much

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