How links work
Liridon Hasani
The <a>
tag (the anchor element) creates a hyperlink to other web pages. It can also link to email addresses and files.
How to create a hyperlink
- Open an
<a>
element - Add a
href
attribute with the link location. For example: http://example.com - Add the closing arrow character (
>
) - Add your label text
- Close your
</a>
tag
Your finished hyperlink should look like this:
<a href="http://example.com">http://example.com</a>
Back to home