English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
L'attributo alink specifica il colore del link attivo nel documento (fai clic sul link per attivarlo).
Il colore del link attivo nel documento è impostato su blu:
<!DOCTYPE html> <html> <head> <title>HTML: attributo alink di <body> - Sito di base per tutorial oldtoolbag.com</title> </head> <body alink="#0000cc"> <p><a href="https://it.oldtoolbag.com">oldtoolbag.com</a></p> <p><a href="https://it.oldtoolbag.com/html/">Tutorial HTML</a></p> <p>HTML5 non supporta più questa proprietà. Utilizzare CSS al suo posto.</p> </body> </html>Prova a vedere ‹/›
IEFirefoxOperaChromeSafari
Tutti i browser mainstream supportano l'attributo alink
HTML5 non supporta più l'attributo alink di <body>. Utilizzare CSS al suo posto.
L'attributo alink dell'elemento <body> è stato abbandonato in HTML 4.01.
L'attributo alink dell'elemento <body> specifica il colore dei link attivi (link attivi).
In HTML 4.01, l'uso dell'attributo alink dell'elemento body non è raccomandato; in XHTML 1.0 Strict DTD, l'attributo alink dell'elemento body non è supportato. Utilizza CSS invece.
Sintassi CSS (sezione <head>): <style>a:active {color: #0000FF}</style>
<body alink="color_name|hex_number|rgb_number">
Valore | Descrizione |
---|---|
color_name | Stabilisce il colore del testo come nome del colore (ad esempio "red"). |
hex_number | Stabilisce il colore del testo come valore esadecimale (ad esempio "#ff0000"). |
rgb_number | Stabilisce il colore del testo come codice rgb (ad esempio "rgb(255,0,0)"). |