Tell us what’s happening:
Describe your issue in detail here. I dont know what to dooooo help please.
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<!-- 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.">
</main>
</body>
</html>
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
Link to the challenge:
jeshou
August 15, 2022, 7:34pm
2
Hi! The instructions tell you to turn the image into a link.
You will be placing a specific code around your <img>
section.
I dont know what code to put and where to put it please help
jeshou
August 15, 2022, 7:38pm
4
You have used the <a>
earlier to create a link in the <p>
section right before the image! With that knowledge, how would you create a link for the <img>
section?
1 Like
Here’s my code. I’m not sure where to add the code, because wherever I try, it says that it’s wrong. Where would I insert the link?
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com"<cat photos></a></p>
iedi
August 15, 2022, 7:49pm
6
Hello,
The code should look like this, so that the image becomes a clickable element.
<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>
You simply need to wrap the existing image in a <a href="">*inside here you put the <img> element*</a>
1 Like
jeshou
August 15, 2022, 7:52pm
7
JackTheMan:
Here’s my code. I’m not sure where to add the code, because wherever I try, it says that it’s wrong. Where would I insert the link?
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com"<cat photos></a></p>
So you see how you have the <a>
tag for “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.">
You’re going to want a similar <a>
tag around <img src="...">
An example:
<a href="https://www.google.com/"><img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png></a>
In doing so, you have an image displayed, and once you click on it, it will take you the website in the <a>
tag.
1 Like
system
Closed
February 14, 2023, 7:53am
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.