You need an a element that links to https://freecatphotoapp.com needs help

Hi guys I’m getting this error. Bellow is my code
https://freecatphotoapp.com
can anyone give me tips on why I am making this error?

welcome to FreeCodeCamp!
unfortunately we are not clairvoyants so you will need to give more details:
please post the link of the challenge and your whole code formatted as follow

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).


Next time you need help, if you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

You (me) need an a element that links to https://freecatphotoapp.com
<main>
<h2>CatPhotoApp</h2>
<a href= "https://freecodecamp.org">this links to freecodecamp.org</a>
<a href="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>
<a href="https://freecatphotoapp.com">https://freecatphotoapp.com</a>
</main>
<h2>CatPhotoApp</h2>
<a href="https://freecodecamp.org">this links to freecodecamp.org</a>
<a href="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>
  <a href="https://freecatphotoapp.com">https://freecatphotoapp.com</a>
</main>

what’s the challenge link?

but the first thing I see is that you have 3 different a elements, you probably need only one, and your img element is broken, there is an extra " that makes the src element emtpy

<main>
<h2>CatPhotoApp</h2>
<a href="https://freecodecamp.org">this links to freecodecamp.org</a>
<a href="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>
  <a href="https://freecatphotoapp.com">https://freecatphotoapp.com</a>
</main>

Basic HTML and HTML5: Link to External Pages with Anchor Elements

You can use a ( anchor ) elements to link to content outside of your web page.

a elements need a destination web address called an href attribute. They also need anchor text. Here’s an example:

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

Then your browser will display the text “this links to freecodecamp.org as a link you can click. And that link will take you to the web address https://www.freecodecamp.org .

Create an a element that links to https://freecatphotoapp.com and has “cat photos” as its anchor text.

I see that you use 3 anchor elements. try to delete the first one that is “this links to freecodecamp” and the third one that is “https://freecatphotoapp.com”. you have written the correct answer in the second anchor elements.

<main>
<h2>CatPhotoApp</h2>
<a href="https://freecodecamp.org"></a>
<a href="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>
  <a href="https://freecatphotoapp.com"></a>
</main>

you still have three anchor elements… you need to have only ONE, if you have more the tests can fail just for that

maybe reset your code if you have difficulties getting unstuck from here?

1 Like

is this good?

<h2>CatPhotoApp</h2>
<main>
<a href="https://freecodecamp.org">this links to freecodecamp.org</a>
<a href="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>