lnpxxx
November 11, 2022, 8:09pm
1
Tell us what’s happening:
I don’t understand what I’m doing wrong can someone help and explain please!?
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/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
Griff
November 11, 2022, 8:27pm
2
Hi!
HTML elements need an opening and closing tag. Where is your anchor elements closing tag?
lnpxxx
November 11, 2022, 8:30pm
3
would the closing tags be ? because I keep trying that and it still won’t work
hbar1st
November 11, 2022, 8:35pm
4
The anchor closing tag is this one </a>
lnpxxx
November 11, 2022, 8:53pm
5
I tried that it says I should only have 1 opening anchor and Im just so confused
hbar1st
November 11, 2022, 8:53pm
6
there’s probably something else wrong.
But that doesn’t mean you don’t need the closing tag.
Make sure the closing anchor tag is on the right hand side of the img element
and if you are still stuck then please post the latest code
1 Like
lnpxxx
November 11, 2022, 9:01pm
7
Tell us what’s happening:
what am I dong 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"</a><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/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
hbar1st
November 11, 2022, 9:03pm
8
hi there,
the closing tag should be on the -right side- of the img element
<a href="something"><img src="something"></a>
hbar1st
November 11, 2022, 9:03pm
9
Please do not create a duplicate topic for the same challenge in future. I have merged your duplicate into the original topic.
1 Like
system
Closed
May 13, 2023, 9:04am
10
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.