HTML Hyperlink is used to link from one page to another. Use “<a> tag” to create a Hyperlink. In <a> tag href attribute needed link’s destination.
Some Hyperlinks terms are in HMTL:-
- Visited Link:- A visited link is underlined and purple.
- Hover Link:- Move the mouse over a link, the mouse arrow will turn into a little hand.
- Active Link:- The default link color for browsers is blue. The default link color for browsers is blue. (Non visited)
Q: How to create a hyperlink in HTML?
Answer: You have to use <a> tag to insert (create) a hyperlink in an HTML page.
Example code for HTML Hyperlink
<!DOCTYPE html>
<html>
<body>
<a href="https://www.google.com/">Google Link</a>
</body>
</html>
Output:
![create a hyperlink in HTML](https://i0.wp.com/tutorial.eyehunts.com//wp-content/uploads/2020/10/create-a-hyperlink-in-HTML.png?resize=180%2C117&ssl=1)
The tag indicates where the hyperlink starts and the tag indicates where it ends.
Read more: HTML a tag( HTML anchor tag)
Do comment if you have any doubts and suggestions on this tutorial.
Note: The All HTML Examples codes are tested on the Firefox browser and the Chrome browser.
OS: Windows 10
Code: HTML 5 Version