Tag HTML <carattere>
Non supportato in HTML5.
Il <font>
tag è stato utilizzato in HTML 4 per specificare il tipo di carattere, la dimensione del carattere e il colore del testo.
Cosa usare invece?
Esempio
Imposta il colore del testo (con CSS):
<p style="color:red">This is a paragraph.</p>
<p style="color:blue">This
is another paragraph.</p>
Esempio
Imposta il carattere del testo (con CSS):
<p style="font-family:verdana">This is a paragraph.</p>
<p
style="font-family:'Courier New'">This is another paragraph.</p>
Esempio
Imposta la dimensione del testo (con CSS):
<p style="font-size:30px">This is a paragraph.</p>
<p
style="font-size:11px">This is another paragraph.</p>
Nel nostro tutorial CSS puoi trovare maggiori informazioni su CSS Text e CSS Fonts .