HTML Tim Berners-Lee saw the possibility of using hyperlinks to link any information to any other information over the
Internet. Hyperlinks were therefore integral to the creation of the
World Wide Web. Web pages are written in the hypertext mark-up language
HTML. This is what a hyperlink to the home page of the
W3C organization could look like in HTML code: W3C organization website This HTML code consists of several
tags: • The hyperlink starts with an anchor opening tag , and includes a hyperlink reference href="https://www.w3.org/" to the
URL for the page. (The URL is enclosed in quotes.) • The
URL is followed by >, marking the end of the anchor opening tag. • The words that follow identify what is being linked; this is the only part of the code that is ordinarily visible on the screen when the page is rendered, but when the cursor hovers over the link, many browsers display the target URL somewhere on the screen, such as in the lower left-hand corner. • Typically these words are underlined and colored (for example, blue for a link that has not yet been visited and purple for a link already visited). • The anchor closing tag () terminates the hyperlink code. • The tag can also consist of various
attributes such as the "rel" attribute which specifies the relationship between the current document and linked document.
Webgraph is a
graph, formed from
web pages as vertices and hyperlinks, as directed edges.
XLink The
W3C recommendation called
XLink describes hyperlinks that offer a far greater degree of functionality than those offered in HTML. These
extended links can be
multidirectional, remove linking from, within, and between XML documents. It can also describe
simple links, which are unidirectional and therefore offer no more functionality than hyperlinks in HTML.
Permalinks Permalinks are URLs that are intended to remain unchanged for many years into the future, yielding hyperlinks that are less susceptible to
link rot. Permalinks are often rendered simply, that is, as friendly URLs, so as to be easy for people to type and remember. Permalinks are used in order to
point and
redirect readers to the same
Web page, blog post or any online digital media. The scientific literature is a place where link persistence is crucial to the public knowledge. A 2013 study in
BMC Bioinformatics analyzed 15,000 links in abstracts from Thomson Reuters'
Web of Science citation index, founding that the median lifespan of Web pages was 9.3 years, and just 62% were archived. The median lifespan of a Web page constitutes high-degree variable, but its
order of magnitude usually is of some months.
File based hyperlinks Internet shortcut (.url) file An
Internet shortcut file, also known as the URL file format, has the
file extension (possibly hidden by default in the
graphical user interface), and is the
file format in
Windows systems used for hyperlinks to the Internet. Internet shortcuts are
text files, but their internal structure is similar to that of an
INI file. Opening them in the graphical file browser of Windows or
macOS (but not
Linux) will open the link in the default web browser. Internet shortcut files can be easily made by hand, as the minimum features needed to operate as a hyperlink are simply the [InternetShortcut] header and the URL= key-value pair. Other key-value pairs are irregularly supported across operating systems. An example of a valid Windows Internet Shortcut with some specialized key-value pairs is shown below: [InternetShortcut] URL=https://www.wikipedia.org/ WorkingDirectory=C:\WINDOWS ShowCommand=7 IconIndex=1 IconFile=C:\WINDOWS\SYSTEM\url.dll Modified=20F06BA06D07BD014D HotKey=1601
macOS .webloc file On
macOS systems, the specialized file format for file based hyperlinks is the file. It uses
XML Property list syntax: URL https://www.wikipedia.org/
Linux Freedesktop.org .desktop file A file based hyperlink under Unix/Linux with a desktop environment is stored in a file. It is only supported under Linux. It is a text file with a syntax highly similar to the Windows URL file described above. An example of a valid Freedesktop.org .desktop file is shown below: [Desktop Entry] Encoding=UTF-8 Type=Link Name=Wikipedia URL=https://www.wikipedia.org/
link.html file A Windows, macOS, and Linux cross-platform file based hyperlink can be implemented with an unofficial style file: Redirecting to https://www.wikipedia.org ... Loading https://www.wikipedia.org ... ==How hyperlinks work in HTML==