I can't Link to External Pages with Anchor Elements

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 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15.

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

You have a small typo above.

Ok. What is the typo?

You need

<a href="link">this link</a>

But you looks know nothing about href when you ask what is typo.

herf is not the same as href

1 Like

Your right I know nothing about href or herf. Im still very new to all of this but have found a great love for prgramming, coding, etc. which means im still learning and most importantly im still going to be asking a lot more of those silly question.

Anchor element have several attributes, but herf is not a valid attribute for an anchor element or any other element.

In the challenge instructions (seen below), it tells you about the href attribute. You just spelled it incorrectly which is what I was pointing out to you in an earlier reply.

anchor elements need a destination web address called an href attribute.