/Responsive Web Design

10. 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.


Challenge

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


Prev: 9. Add Images to Your Website

Next: 11. Link to Link to Internal Sections of a Page with Anchor Elements