DEV Community

Cover image for HTML TUTORIAL FOR BEGINNERS PART 3
ahmadullah
ahmadullah

Posted on

HTML TUTORIAL FOR BEGINNERS PART 3

You can use a(anchor) elements to link to content outside of your web page.
aelements need a destination web address called an hrefattribute. They also need anchor text. Here's an example:

<a href="https://www.freecodecamp.org">this links to freecodecamp.org</a>
Enter fullscreen mode Exit fullscreen mode

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)