The "link" Element

Use the "link" element to link a document to other resources. It's usually (but not always) used in the "head" section.

Attributes for "link"
TypeAttribute List
'Standard' Attributes"color", "href", "hreflang", "integrity", "media", "rel", and "type"
New HTML5 Attributes"crossorigin" and "sizes"
New HTML 5.1 Attributes"as"
New HTML 5.2 Attributes"referrerpolicy"
Obsolete Attributes"urn", "target", "rev", "methods", and "charset"


  • The "link" element can be used to link a stylesheet. Example: <link href="/mainstyles.css" type="text/css" rel="stylesheet">

Recommended Links

Accessibility Information & Tips

  • Consider using the "link" element with the "rel" attribute to provide metadata about the position of web pages that are part of collection. For example, specify the URLs to the next, previous, and content pages. Visit for more information. Consider also linking to a glossary page if appropriate. Visit for more information.

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem