link

The link HTML element represents metadata that expresses inter-document relationships.

Syntax

HTML

<link attribute-name="attribute-value">

Attributes

Global

NameValueDescription
hrefURIreference to the hyperlink destination
hreflanglanguage taglanguage of the hyperlink destination
mediamedia query listMedia for which the destination of the hyperlink was designed
reltokensrelationship between the hyperlink document and the hyperlink destination
sizesany | sizesSizes of icons for visual media
typeMIME typetype of the hyperlink destination

CSS

link {
    display: none;
}

Examples

href

hreflang

media

rel

sizes

type

CSS

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu