Updated: 07/06/2021 by Computer Hope
Mouse cursor clicking a hyperlink.

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 Computer Hope home page.

Hyperlinks are what allow web pages to connect to other web pages and without them you would need to know the URL (Uniform Resource Locator) 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 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 named anchors to 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's not underlined by hovering your mouse pointer over the text. A browser changes 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.

HTML a tag

Further information and examples on creating a hyperlink is 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 or the Enter on the keyboard. For example, you can press the Tab 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.

What is the hyperlink shortcut key?

The keyboard shortcut key used to insert a hyperlink varies depending on the program being used. In most Microsoft programs like Microsoft Word and Excel, the shortcut keys is Ctrl+K.

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 open other files, documents, and web pages.

Hyperlinks can also be made into a QR code, placed on products, and scanned by a smartphone to open a web page without entering the URL.

<a>, Broken link, External link, HTML, Hypertext, Internal link, Internet terms, Link, Naked URL, Nofollow, SEO terms, Web, Web design terms, WWW