Gozzi
December 4, 2024, 4:07pm
1
Tell us what’s happening:
i am missing a closing (a) tag after the image
<p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- User Editable Region -->
<p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
<!-- User Editable Region -->
</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/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Challenge Information:
Learn HTML by Building a Cat Photo App - Step 17
ILM
December 4, 2024, 4:22pm
2
you do not have an anchor element around the image, you are also missing the opening <a>
tag before the image
what doubts do you have for this step?
Gozzi
December 5, 2024, 4:41pm
3
Gozzi:
</html>
I’ve tried this solution yet it keeps showing the same thing
ILM
December 5, 2024, 4:45pm
4
what solution have you tried?
Gozzi
December 5, 2024, 4:49pm
5
ILM
December 5, 2024, 4:56pm
6
please share your updated code
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 (').
Gozzi
December 5, 2024, 5:04pm
7
;;;;;;;;;
<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/>
this is it
ILM
December 5, 2024, 5:09pm
8
Those are not backticks, those are semicolons. Also your closing tag us malformed.
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 (').