My code looks good I'm not sure why it doesnt work

Tell us what’s happening:

“Your an element should be a dead link with a href attribute set to #” is what it tells me to do but i have done this already im not sure if im missing something but it looks perfect to me. can someone help?

Your code so far


<h2>CatPhotoApp</h2>
<main>
  <p>Click here to view more <a href="#">cat photos</a>.</p>
  
<a herf="#"><img src="https://bit.ly/fcc-relaxing-cat"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 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/turn-an-image-into-a-link

You have misspelled :smiley:
It should be href

1 Like

wow haha, thank you!

Im new to coding but im learning fast, nice to meet you and this community!

4 Likes