Il tag HTML <font>


Descrizione

Il tag HTML <font> viene utilizzato per indicare il font del testo.È stato deprecato in HTML ed in XHTML.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML font Tag</title>
</head>
<body>
<font face="cursive,serif" color="#ff9900" size="4">
The HTML font tag is now deprecated. You should use start using CSS to set font size and family.
</font>
</body>
</html>

Produrrà il seguente risultato:

The HTML font tag is now deprecated. You should use start using CSS to set font size and family.

Attributi Globali

Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi

Attributi Specifici

The HTML <font> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
color rgb(x,x,x)
#hexcode
colorname
Deprecato - Definisce il colore del testo.
face Elenco di nomi di fontDeprecato - Definisce la famiglia del font.
size numericoDeprecato - Definisce la dimensione del font da 1 a 7.

Attributi Evento

Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiSiSiSiSi
html_tags_reference.htm
Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements