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://www.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
Task
Create an a
element that links https://www.freecatphotoapp.com and has cat photos as its anchor text.
Solution
<a href="https://www.freecatphotoapp.com">cat photos</a>
Top comments (0)