Creating links
The anchor element, written as a, creates hyperlinks to other pages, files or locations.
Learn how websites are structured from the ground up using HTML. Build real pages while learning elements, attributes, links, images, forms, tables, semantic HTML and more.
Lesson 5 of 24
12 min learning time
The anchor element, written as a, creates hyperlinks to other pages, files or locations.
The href attribute tells the browser where the link should go.
<a href="https://example.com">
Visit Example
</a>
<br><br>
<a href="about.html">
About Us
</a>
Practical Exercise
Create links to your Home, About and Contact pages.
Quick Check
Which attribute specifies the destination of a link?