Alternatively referred to as a link and web link, a hyperlink is an icon, graphic, or text 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, "Computer Hope home page" is a hyperlink to the main page of Computer Hope.
- Why are hyperlinks used on web pages?
- What happens when you click a hyperlink?
- Why are some hyperlinks different colors?
- Example of how to create a hyperlink.
- How can I click a link without using a mouse?
- How to create a hyperlink on an image.
- Other places hyperlinks are found.
- Related browser pages.
- Internet browsers help and support.
Why are hyperlinks used on web pages?
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.
It is also possible to create a hyperlink (named anchor) to a location on the same page. For example, the links at the beginning of this page are all named anchors to each of the headings on this page. A link may also open a new tab and keep the current window open as a background tab.
On a computer you can identify a hyperlink even if it is not underlined by hovering your mouse pointer over the text. A browser will change the pointer from an arrow to a finger to indicate it can be opened. Also, at the bottom of the window the URL of the link should appear to help you identify where the link points.
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. However, the link to this hyperlink page should be purple because you've visited the page since you are reading it now.
Example of how to create a hyperlink
Below is an example of how to create a hyperlink on an HTML page. In our visual example, you can see that a hyperlink uses the a tag with the href attribute that points to the file or web page. In the example, the hyperlink would be titled "Computer Hope" and point to the hope.html file. If the file did not exist, you would get a 404 error.
Further information and examples on creating a hyperlink can also be found on the link below.
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, you can press the Tab key repeatedly to navigate through each of the links on this page. When you get to a link you want to "click" and visit, you can press the Enter key to follow that link.
How to create a hyperlink on an image
In HTML, there are two ways you can create a hyperlink on an image. If you want to link the complete image, you can place the img tag in the anchor tag. If you want to create a hyperlink in only part of the image, you would create an image map.
Other places hyperlinks are found
Hyperlinks are not exclusive to Internet browsers. Many programs and even operating systems also use hyperlinks. For example, electronic documents, PDFs, and Windows 10 all feature hyperlinks that can be used to open other files, documents, and web pages.