Attributo HTML <link> href
Esempio
Collegamento a un foglio di stile esterno:
<link rel="stylesheet" href="styles.css">
Definizione e utilizzo
L' href
attributo specifica la posizione (URL) della risorsa esterna (il più delle volte un file di foglio di stile).
Supporto del browser
Attribute | |||||
---|---|---|---|---|---|
href | Yes | Yes | Yes | Yes | Yes |
Sintassi
<link href="URL">
Valori di attributo
Value | Description |
---|---|
URL | The URL of the linked resource/document. Possible values:
|
❮ Tag HTML <link>