Href topic please

Tell us what’s happening:
Describe your issue in detail here.

i dont understand when it say You need an a element that links to https://www.freecatphotoapp.com
Your code so far


<h2>https://www.freecatphotoapp.com</h2>
<main>
<a href="https://www.freecodecamp.com">cat photos</a>


<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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/99.0.4844.84 Safari/537.36

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

A link is created in html via an anchor (a) tag. Anchor tags have an href property. The value of the href property is the url that it links to. If I wanted to create a link like this:

Google

the html would look like:

<a href="https://www.google.com">Google</a>

Anchors are the elements that link to a page. So, the element you added is correct.

But the value of its href attribute is wrong. It should be www.freecatphotoapp.com instead of www.freecodecamp.com so as to pass the test!

1 Like

thanks i noticed the mistake

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