HTML Links
HTML Links, also called hyperlinks, connect one web page to another. They are created
using the <a> (anchor) tag and allow users to navigate between pages,
websites, files, email addresses, and different sections of a page.
What are HTML Links?
HTML Links are clickable elements that allow users to move from one page or resource
to another. They are created using the <a> tag together with the
href attribute.
Basic HTML Link Example
The example below shows how to create a simple hyperlink.
<!DOCTYPE html>
<html>
<body>
<a href="https://www.example.com">
Visit Example Website
</a>
</body>
</html>
Try HTML Links
Common Types of HTML Links
HTML supports different kinds of hyperlinks for different purposes.
- Links to other websites
- Links to pages within the same website
- Email links using
mailto: - Telephone links using
tel: - Links that open in a new browser tab
- Links to sections within the same page
Why Learn HTML Links?
HTML Links make websites easy to navigate and connect web pages together. They are essential for building interactive and user-friendly websites.
- Connect web pages together
- Navigate between websites
- Open pages in new tabs
- Create email and phone links
- Essential for every website
Frequently Asked Questions
What are HTML Links?
HTML Links, also called hyperlinks, allow users to navigate from one web page or resource to another using the <a> tag.
How do I create a link in HTML?
You can create a link using the <a> (anchor) tag and the href attribute to specify the destination URL.
Can HTML links open in a new tab?
Yes, you can open a link in a new browser tab by adding target="_blank" to the anchor tag.