Tell us what’s happening:
Describe your issue in detail here.
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."</img></a>
</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/105.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
I can’t seem to figure this step out. If someone can tell me what I am doing wrong that would be great.
Change :
<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."</img></a>
To :
<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>
Hope it helps.
Note that img tag is self closing.
kai1
3
on its back."></a>
You haven’t closed the image tag i guess!
1 Like
it still doesn’t work it’s saying that You should only add one opening anchor (a
) tag. Please remove any extras.
kai1
5
<a href="https://freecatphotoapp.com">
thanks i just figured it out. really appreciate the quick help
1 Like
hbar1st
7
Sharing solutions when someone asks for help is not allowed in the forum. Please consider this for next time.
1 Like
Noted, thanks.
Should i somehow blur it out ?
hbar1st
9
no, it shouldn’t be shared at all. Instead you can consider other methods of helping like:
- a hint or tip
- a link to a ref that shows examples
- pointing out a specific error in the written code
- an explanation of a concept
1 Like
do you think you can help me with my other post. Learn HTML by Building a Cat Photo App - Step 27