A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/link below:

link · WebPlatform Docs

link Summary

Enables the current document to establish links to external documents.

Overview Table
DOM Interface
HTMLLinkElement

The <link> element allows authors to link their document to other resources. It carries the same semantics as any hyperlink, or the HTTP Link: header.

Attributes Link relations

A URI or any IANA Link can be used as the link rel="", but HTML defines special semantics for many of them:

Link type Category Description alternate Hyperlink Gives alternate representations of the current document. archives Hyperlink Provides a link to a collection of records, documents, or other materials of historical interest. author Hyperlink Gives a link to the current document’s author. first Hyperlink Indicates that the current document is a part of a series, and that the first document in the series is the referenced document. help Hyperlink Provides a link to context-sensitive help. icon External Resource Imports an icon to represent the current document. index Hyperlink Gives a link to the document that provides a table of contents or index listing the current document. last Hyperlink Indicates that the current document is a part of a series, and that the last document in the series is the referenced document. license Hyperlink Indicates that the main content of the current document is covered by the copyright license described by the referenced document. next Hyperlink Indicates that the current document is a part of a series, and that the next document in the series is the referenced document. pingback External Resource Gives the address of the pingback server that handles pingbacks to the current document. prefetch External Resource Specifies that the target resource should be preemptively cached. prev Hyperlink Indicates that the current document is a part of a series, and that the previous document in the series is the referenced document. search Hyperlink Gives a link to a resource that can be used to search through the current document and its related pages. stylesheet External Resource Imports a stylesheet. sidebar Hyperlink Specifies that the referenced document, if retrieved, is intended to be shown in the browser’s sidebar (if it has one). tag Hyperlink Gives a tag (identified by the given address) that applies to the current document. up Hyperlink Provides a link to a document giving the context for the current document. Examples

This example uses the link element to apply an external style sheet, called styles.css, to the page.

<link rel=stylesheet href="styles.css" type="text/css"/>
Notes Remarks

The link element can be used only within the head tag. Windows Internet Explorer 8 and later. The behavior of the href and the rel attributes depends on the current document compatibility mode.

IANA Link Relations database

The IANA maintains a registry of valid link relations at their Link Relations registry, established in RFC5988.

Related specifications
HTML 5.1
W3C Working Draft
HTML 5
W3C Recommendation
HTML 4.01
W3C Recommendation
RFC 5988: Web Linking
Standards Track
Subresource Integrity
W3C Working Draft
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4