Hyperlink (2024)

A hyperlink (often referred to as simply a link), is a reference or navigation element in a document to another section of the same document, another document, or a specified section of another document, that automatically brings the referred information to the user when the navigation element is selected by the user.

Hyperlinks are part of the foundation for the World Wide Web but are not limited to HTML or the web. Hyperlinks may be used in almost any electronic media.

Contents

  • 1 On the web
    • 1.1 Absolute links
    • 1.2 Relative links
      • 1.2.1 Relative from the current document
      • 1.2.2 Relative from the web root
    • 1.3 Inline links
  • 2 I still need help

On the web

To make a hyperlink in HTML, use the anchor tag: <a href="URL" title="Description of link">link text</a>.

There are three different types of hyperlinks on the web, absolute, relative, and inline links.

Absolute links

Absolute links are generally used to link to a document on a separate Website and are represented as a complete URL.

Examples
URLhttp://google.com
HTMLThe <a href="http://google.com" title="Google is a good search engine">search engine</a>.
URLhttps://gustavus.edu/gribly/
HTMLThe <a href="https://gustavus.edu/gribly/">Gribly</a> allows you to search for directory information.

Relative links

Relative links are used to link to a document that is located under the same domain name and are represented as a partial URL. There are two different types of relative links: relative from the current document and relative from the web root.

Relative from the current document

Examples
URLWorld_Wide_Web
HTMLLearn about the <a href="World_Wide_Web" title="World Wide Web on Technology Services' wiki">World Wide Web</a>.
URL../athletics/index.cfm
HTMLThe <a href="../athletics/index.php" title="Athletics at Gustavus">Athletics</a> site is one of our best.
URLwebservices/frequently-asked-questions/
HTMLWeb Services has a list of <a href="webservices/frequently-asked-questions/">frequently asked questions</a>.

This section of this article is a stub. You can help by expanding it.

Relative from the web root

Examples
URL/gts/Hyperlink
HTMLLearn about <a href="/gts/Hyperlink" title="Hyperlink on Technology Services' wiki">hyperlinks</a>.

This section of this article is a stub. You can help by expanding it.

Inline links

Inline links are used to link to information within the same document and are represented by a pound sign (#) followed by the target anchor's name.

In order for an inline link to work, you need to give it a target to point to using the anchor tag: <a name="anchor-name"></a>.

Examples
URL#chapter-three
HTMLThe <a href="#chapter-three" title="Jump to the third chapter">third chapter</a> of this book.

This article is a stub. You can help by expanding it.

I still need help

Please e-mail web@gustavus.edu or stop by the Web Services office in Olin Hall 119.

Hyperlink (2024)
Top Articles
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 6055

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.