
- 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 <a>
Descrizione
Il tag HTML <a> è utilizzato per impostare dei collegamenti ipertestuali verso altre pagine o verso alcune parti del documento stesso.
Esempio
<!DOCTYPE html> <html> <head> <title>Il tag HTML a</title> </head> <body> <p> This is a link to <a href="https://www.amrood.com">AMROOD.com</a> </p> </body> </html>
Produrrà il seguente risultato:
This is a link to AMROOD.com
Attributi Globali
Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi
Attributi Specifici
The HTML <a> supporta anche i seguenti attributi aggiuntivi:
Attributo | Valore | Descrizione |
---|---|---|
charset | character_encoding | Definisce la codifica dei caratteri del documento collegato. |
coords | if shape="rect" then
coords="left,top,right,bottom" if shape="circ" then coords="centerx,centery,radius" if shape="poly" then coords="x1,y1,x2,y2,..,xn,yn" | Specifies the coordinates appropriate to the shape attribute to define a region of an image for image maps. |
download ![]() | filename | This downloads the target when user clicks on the hyperlink. |
href | URL | Specifies the URL of a page or the name of the anchor that the link goes to. |
hreflang | language_code | Codice Lingua dell' URL di destinazione.. |
media ![]() | media_query | It specifies what media the linked document is optimized for |
name | section name | Marks an area of the page that a link jumps to. |
rel | alternate designates stylesheet start next prev contents index glossary copyright chapter section subsection appendix help bookmark | Describes the relationship between the current document and the destination URI. |
rev | alternate designates stylesheet start next prev contents index glossary copyright chapter section subsection appendix help bookmark | Specifies the relationship between the target URL and the current document. |
shape | rect
rectangle circ circle poly polygon | Specifies the shape of the image map |
target | _blank
_parent _self _top | Indica dove aprire l' URL di riferimento.
_blank - l' URL viene aperto in una nuova finestra _self - l' URL di riferimento viene aperto nella stessa pagina _parent - l' URL di riferimento viene aperto in una nuova pagina _top - l' URL di riferimento viene aperto nella stessa finestra (a pieno schermo) |
type ![]() | mime_type | Specifies the MIME (Multipurpose Internet Mail Extensions) type of the target URL |
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