
- Guida HTML
- HTML - Home
- HTML - Introduzione
- HTML - Tag Basiliari
- HTML - Elementi
- HTML - Attributi
- HTML - Formattazione
- HTML - Tags Phrase
- HTML - Meta Tags
- HTML - Commenti
- HTML - Immagini
- HTML - Tabelle
- HTML - Liste
- HTML - Link Testuali
- HTML - Link nelle Immagini
- HTML - Link ad Indirizzi Email
- HTML - Frame
- HTML - Iframe
- HTML - Blocchi
- HTML - Sfondi
- HTML - Colori
- HTML - Fonts
- HTML - Form
- HTML - Incorporare Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Fogli di Stile
- HTML - Javascript
- HTML - Layout
- HTML Referenze
- HTML - Riferimenti Tag
- HTML - Riferimenti Attributi
- HTML - Riferimenti Eventi
- HTML - Riferimenti Font
- HTML - Codici ASCII
- Tabella Codici ASCII
- HTML - Colori
- HTML - Entità
- HTML - Rif Font
- HTML - Rif Eventi
- MIME Media Types
- HTML - Coifica URL
- Codici Linguaggi ISO
- HTML - Codifica Caratteri
- HTML - Tag Deprecati
- HTML Risorse Utili
- HTML - Color Code Builder
- HTML - Editor Online
Il tag HTML <link>
Descrizione
Il tag HTML <link> serve per indicare un collegamento ad un documento esterno. È inserito nella sezione <head> del documento
Esempio
<!DOCTYPE html> <html> <head> <title>HTML link Tag</title> <link rel="stylesheet" href="stylenew.css"> </head> <body> <div id="contentinfo"> <p>Welcome to our website. We provide tutorials on various subjects.</p> </div> </body> </html>
Here is the csss file stylenew.css
#contentinfo p { line-height: 20px; margin: 30px; padding-bottom: 20px; text-align: justify; width: 140px; color: red; }
Produrrà il seguente risultato:

Attributi Globali
Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi
Attributi Specifici
Il tag HTML <link> supporta anche i seguenti attributi aggiuntivi:
Attributo | Valore | Descrizione |
---|---|---|
charset | charset | Definisce la codifica dei caratteri del documento collegato. |
href | URL | Definisce l' URL della risorsa collegata. |
hreflang | language | Codice Lingua dell' URL di destinazione. |
media | screen tty tv projection handheld braille aural all | Definisce il dispositivo in cui sarà visualizzato il documento. |
rel | alternate appendix bookmark chapter contents copyright glossary help home index next prev section start stylesheet subsection | Definisce la relazione tra il documento corrente e quello di destinazione. |
rev | alternate appendix bookmark chapter contents copyright glossary help home index next prev section start stylesheet subsection | Descrive un reverso tra l' URI di destinazione e il documento corrente. |
sizes ![]() | HeightxWidth | Definisce la dimensione della risorsa collegata. |
target | blank _self _top _parent | Definisce la destinazione in cui sarà caricata la pagina. |
type | mimetype | Il MIMEtype del contenuto al link di destinazione |
Attributi Evento
Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi
Compatibilità Browser
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Si | Si | Si | Si | Si | Si |
html_tags_reference.htm
Advertisements