HTML <link> href Attribute
Example
Link to an external stylesheet:
<link rel="stylesheet" type="text/css" href="theme.css">
Try it yourself »
Definition and Usage
The href attribute specifies the location (URL) of the external resource (most often a style sheet file).
Browser Support
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Differences Between HTML 4.01 and HTML5
NONE.
Syntax
<link href="URL">
Attribute Values
Value | Description |
---|---|
URL | The URL of the linked resource/document. Possible values:
|
HTML <link> tag