Anchor text not working

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
 
  
  
  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
  
  <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>
<a href="https://freecatphotoapp.com">cat photos</a>

</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements

Hi, HAMZ00

Your code looks great, double check where the anchor is taking you to. Confirm that the whole link is correct including http or https.

Thanks,
Ray

cat

Try using “http://” instead of “https://”

It still won’t allow me to move on.

Please share what your code looks like.

"Create an a element that links to http://freecatphotoapp.com and has “cat photos” as its anchor text " . -> That is what your challenge is.
To make it clear - anchor gives you the opportunity to create a link over the element which will redirect you after you click on it.
In this case, your task is to make PHOTO to be a link, so you can click photo and then you get redirected.
basically, you have to include photo into ‘a’ node.

<a href="http://freecatphotoapp.com">cat photos
<img src="..."... >
</a>

thanks to this you make photo a link and your task is solved :wink:

1 Like