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>
Share on:

Leave a Comment

Your email address will not be published.

Scroll to Top