I’m not sure if I have the (a) element in the correct place but the instructions wasn’t clear. Can someone please advise if I completely put it in the wrong spot or if I am close.
**Your code so far**
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<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>
**Your browser information:**
Challenge: Step 14
Link to the challenge:
Not quite. You want to surround the image element with the anchor tags. Right now you have both anchor tags after the image element. Whatever you put inside of the anchor tags will become a link on the page.
Ok. I tried it this way and it still didn’t quite work out for me. Should I change the hyperlink to 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."> href="https://freecatphotoapp.com"
Yes, the instructions say to make the link go to
https://freecatphotoapp.com so that’s what you should do. And it looks like that is what you tried to do, except you added the
href attribute as plain text after the
<img> instead of adding it as an attribute to the
Ok. I figured it out. Thank you so much!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.