Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
Trying to turn the image into a link by surrounding it with necessary element tags.

<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/>

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

please provide a link to the challenge



Trying to turn the image into a link by surrounding it with necessary element tags. 
 

[/quote]

type or paste code here

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

Can you please provide a link to the challenge.

Also, just glancing at your code, I think it would be a good idea to go back and look at how you completed step 12. In that step, you had to surround text with an anchor, and that’s not much different from what you are doing here.

Your closing tag should be /a instead of a/
also, your opening tag is missing a “>” sign , you have to close the opening anchor tag properly before moving on to the img part

Very insightful information and useful!

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