A "ancher" element does not work

Tell us what’s happening:

ancher element is not working while running it gives this error
Your a element should have the anchor text of “cat photos”.

Your code so far

<h2>CatPhotoApp</h2>
<main>
  <a href="http://freecatphotoapp.com">this links to freecatphotoapp.com</a>
  <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>
</main>

Your browser information:
// running tests
Your a element should have the anchor text of “cat photos”.
// tests completed

To place anchor text within an anchor, place the closing tag on the other side of the text you want inside the anchor.

<a src=#>Cat Photos</a>

this is your anchor text (inside the a tags), it is not cat photos
try again

Browser info reads
Your a element should have the anchor text of “cat photos”.
But your anchor text reads
“this links to freecatphotoapp.com

So just like what you’ve been told, change your anchor text and try again!

1 Like