Link to External Pages with Anchor Elements – freeCodeCamp Solutions

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

<h2>CatPhotoApp</h2>

<main>

  <a href="https://www.freecatphotoapp.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>
0 0 votes
Article Rating
Was this article helpful?
YesNo
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
Scroll to Top