The anchor code is not working even though I am entering it correctly

Tell us what’s happening:

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<a herf="https://freecatphotoapp.com">cat photos</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:**

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

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

check again how the attribute is called

1 Like

Hi, it looks like your anchor tag has a misspelling for the href…you have it as “herf”.

For reference: HTML a tag

Good luck!

1 Like

type href instead of herf

1 Like

freeCodeCampقمت بانسخ صيغة الكود التي في الفديو
ثم قمت باستبدال الموقع والنص بالمطلوبcat photos
عن طريق اللصق على الكود نفسه

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