link

< html‎ | elements
Jump to: navigation, search

link



Summary

Enables the current document to establish links to external documents.


Overview Table

DOM Interface HTMLLinkElement

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.

Standards information


HTML information

{

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]