Step 14 of Learn HTML

Hello everyone,

I’m stuck on step 14 of the Learn HTML by building a cat photo app. I’m hoping someone can help me point out where I’m going wrong.

This is the challenge:

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

This is the code I’ve put in:

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

The “hint” I’m getting says:

Your anchor ( a ) element should have an opening tag. Opening tags have this syntax: <elementName> .

Help pls!

I should say I’ve tried lots of different variants and I’m getting really frustrated. What happened to the helpful forum links and the hint videos?

Hi @Ajax1609 !

Welcome to the forum!

The anchor tags need to be wrapped around the img element.

<a href="url goes here">
img element goes here
</a>

The issue with the videos and even the challenge guide was that it went out of date frequently when changes to the curriculum were made throughout the years.

There were issues with people using out of date answers because the videos were filmed years ago. The challenge guide would only be updated by moderators or staff if a user pointed out an error. Otherwise it was left out of date.

Hope that helps!

1 Like

Hello @jwilkins.oboe and thank you for the quick response - that does indeed resolve it. I must have tried absolutely every other variant as I was stuck on this for ages !

Awesome!
Glad you were able to figure it out.

I had to remove your solution because the forum does a have policy of not handing out solutions.

Thanks for understanding! :slight_smile:

I’m still stuck here I’ve been so unable to pass this stage and it is not encouraging at all.

Here is the code I’ve written:

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


@jwilkins.oboe what about this

HI @judahwritescodes !

Welcome to the forum!

If you need help with this challenge, it would be better to create a seperate post with your code and the challenge link and people can assist you there.

Thanks for understanding! :slight_smile: