Responsive web design question?

Step 17Passed

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.

Here is an example of turning an image into a link:

Example Code

<a href="example-link">
  <img src="image-link.jpg" alt="A photo of a cat.">
</a>

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

can anybody tell me what did wrong i should nest this link:https://freecatphotoapp.com
into the anchor’s and a img element with a src value of https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg i checked the closing tags but still i dont know where the problem lies I am newbie from germany by the way sorry for my bad english

Could you share your code with us please? Otherwise we can’t see where you might be going wrong.

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

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

@adeniyi.oye You need to close the a tag:

Mod Edit: Solution Removed

could you emphasize what you mean because i think its closed i am not sure tho

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. How to Help Someone with Their Code Using the Socratic Method

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.

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

oh sorry my previous code was wrong but it still doesnt work

You have a small typo here. Look at the start and end of the URL

My bad, I wasn’t aware of the link, thank you for pointing me to it!