W3Schools.com

HTML5 <link> rel Attribute

HTML5 link Tag Reference HTML5 <link> tag

Example

An external stylesheet:

<link rel="stylesheet" type="text/css" href="demo_link.css" />

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The rel attribute is supported in all major browsers.


Definition and Usage

The required rel attribute specifies the relationship between the current document and the linked document/resource.


Differences Between HTML 4.01 and HTML5

Some values are removed, and some new values are added.


Syntax

<link rel="value" />

Attribute Values

Value Description
alternate Links to an alternate version of the document (i.e. print page, translated or mirror)
author Links to the author of the document
help Links to a help document
icon Imports an icon to represent the document
license Links to copyright information for the document
next Indicates that the document is a part of a series, and that the next document in the series is the referenced document
prefetch Specifies that the target resource should be cached
prev Indicates that the document is a part of a series, and that the previous document in the series is the referenced document
search Links to a search tool for the document
stylesheet URL to a style sheet to import


HTML5 link Tag Reference HTML5 <link> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE