Alternatively referred to as a link, a hyperlink is an icon, graphic, or text in a document that links to another file or object. The World Wide Web is comprised of hyperlinks linking trillions of pages and files to one another. For example, click here for Computer Hope is a hyperlink to the main page of Computer Hope.
Note: It is also possible to create a link to a different portion of the same page, these hyperlinks are known as a named anchor.
Why are hyperlinks used on web pages?
Hyperlinks are what allow web pages to connect to other web pages and without them you would need to know the URL for every page on the Internet.
What happens when you click a hyperlink?
When you click, tap, or select a hyperlink, the browser leaves the current page you are viewing and opens the link for the new page. For example, you could click on any of the links below to find out more information related to hyperlinks.
Why are some hyperlinks different colors?
For usability, many websites (including Computer Hope) change the color of visited hyperlinks as a way to let the reader know what page they have already visited. For example, unless you have already viewed our motherboard page, the link should be blue, and the link to this hyperlink page should be purple because you've visited the page since you are reading it now.
How can I click a link without using a mouse?
A keyboard can also perform the same action as a click by pressing either the Spacebar key or the Enter key on the keyboard. For example, if you press Tab key now and continue to press Tab to navigate through each of the links on this page once you get to a link you want to "click" you can press the Enter key on the keyboard to follow that link.
How to create a hyperlink on an image
In HTML there is two ways you can create a hyperlink on an image. If you want to link the complete image you can place the img tag within the anchor tag. If you want to create a hyperlink in only part of the image you would create an image map.