Element that links

Tell us what’s happening:
Describe your issue in detail here.
You need an a element that links to https://www.freecatphotoapp.com
how do you do this i am stuck
Your code so far


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


<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; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

Hi @bella14,

You have few mistakes in your code. The best would be that you look the example gave by the course:

<a href="https://www.freecodecamp.org">this links to freecodecamp.org</a>

Now look your code:

<a href= "https://www.freecodecamp.org"</a>"cat photos"

Little hint, you have three mistakes in this part of your code:
1- The anchor tag work as follow: <a href="..."></a>
2- The text of an anchor should be within the anchor tag: <a href="...">my link</a>
3- The challenge exercice says: Create an a element that links to https://www.freecatphotoapp.com and has "cat photos" as its anchor text. So compare your href with what is asked.

thanks for your help.it worked :smile:

You’re welcome @bella14, good luck for the next challenges!

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