English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The href attribute specifies the location (URL) of the external resource (usually a stylesheet file).
Link to an external stylesheet:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <link> href Attribute Usage-Basic Tutorial(oldtoolbag.com)</title> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <h1>I am formatted with a linked style sheet</h1> <p>Me too!/p> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the href attribute.
The href attribute specifies the location of an external resource (usually a stylesheet file) (URL).
None.
<link href="URL">
Value | Description |
---|---|
URL | Linked resource/URL of the document. Possible values:
|