HTML <font> -tag


Niet ondersteund in HTML5.

De <font>tag werd in HTML 4 gebruikt om het lettertype, de lettergrootte en de kleur van de tekst te specificeren.


Wat te gebruiken in plaats daarvan?

Voorbeeld

Stel de kleur van tekst in (met CSS):

<p style="color:red">This is a paragraph.</p>
<p style="color:blue">This is another paragraph.</p>

Voorbeeld

Stel het lettertype van tekst in (met CSS):

<p style="font-family:verdana">This is a paragraph.</p>
<p style="font-family:'Courier New'">This is another paragraph.</p>

Voorbeeld

Stel de tekstgrootte in (met CSS):

<p style="font-size:30px">This is a paragraph.</p>
<p style="font-size:11px">This is another paragraph.</p>

In onze CSS tutorial vind je meer informatie over CSS Text en CSS Fonts .