JWSIII
December 27, 2022, 5:50am
1
Tell us what’s happening:
Experiencing issues with this problem, i have tried numerous way.
not sure what i could be doing wrong.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<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>
<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.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
You want to surround the img
tag with opening/closing a
tags. I think you forgot about the closing tag. Also, you made a change to the img
tag that you shouldn’t have made. The only thing you want to do is add the opening/closing a
tags. Change nothing else.
JWSIII
December 28, 2022, 4:49am
3
CatPhotoApp
Cat Photos
Click here to view more cat photos .
JWSIII
December 28, 2022, 4:50am
4
Like this
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<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>
<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.">
</main>
</body>
</html>
hbar1st
December 28, 2022, 10:38am
5
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 (').
hbar1st
December 28, 2022, 10:39am
6
Try now adding the closing tag for the anchor </a>
to the right side of the img tag.
The anchor part is not working ? i writing this
<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>
system
Closed
December 5, 2023, 5:42pm
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.