I need help withCreate an a element that links to https://freecatphotoapp.com and has "cat photos" as its anchor text

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

  <h2>CatPhotoApp</h2>

<h2>CatPhotoApp</h2>
<main>
<a href="https://cat photos">this links to https://www.freecatphotoapp.com</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 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

An anchor element looks like this:

<a href="link goes here">anchor text goes here</a>
1 Like

You really should review the link lesson or documentation on links, like the mdn guide on creating links. Also it helps to see other examples other than the freecodecamp’s exercises.
The lesson explanation Links to external pages using anchor elements has it explained, it helps to re-read the lesson text a few times (make sure you understand), as it very often already has an example of how to achieve what is being asked.

<a href="link URL you go to when you click">text you can read</a>
1 Like

Thank you so much, it actually did work.

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