Closing tag for "a" elements

Tell us what’s happening:
Describe your issue in detail here.


I can’t get it right
Your code so far


<h2>CatPhotoApp</h2>
<main>
 
 <p>Click here to view more <a href="#">cat photos"</p>"

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."><a/>

 <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
 <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>
   **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 10; Infinix X683) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.87 Mobile Safari/537.36

Challenge: Turn an Image into a Link

Link to the challenge:

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos.</p>

<img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” alt=“A cute orange cat lying on its back.”>
</a>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

a ----> start before the catphotos and close at the end of the picture

Hello @anchorpraise8,

Watch well you a tag, the way you close them.

<p>Click here to view more <a href="#">cat photos"</p>"

For example here you don’t put the end a tag . Also, a little after, you just didn’t write correctly the end a tag.

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."><a/>
1 Like

Please can you point me in the right direction. I don’t know what to do .

<p>Click here to view more <a href="#">cat photos"</p>"

A link should have text. You just need to read the two lines I showed you to figure out.

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."><a/>

Look your end tag for your link, you wrote .

Please show me the right way to do it, i am stuck!

Did you arrive? I made you another message after that one

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.