HTML <font> Etiketi
HTML5'te Desteklenmez.
Etiket <font>
, HTML 4'te yazı tipi yüzünü, yazı tipi boyutunu ve metnin rengini belirtmek için kullanıldı.
Yerine Ne Kullanılır?
Örnek
Metnin rengini ayarlayın (CSS ile):
<p style="color:red">This is a paragraph.</p>
<p style="color:blue">This
is another paragraph.</p>
Örnek
Metnin yazı tipini ayarlayın (CSS ile):
<p style="font-family:verdana">This is a paragraph.</p>
<p
style="font-family:'Courier New'">This is another paragraph.</p>
Örnek
Metnin boyutunu ayarlayın (CSS ile):
<p style="font-size:30px">This is a paragraph.</p>
<p
style="font-size:11px">This is another paragraph.</p>
CSS eğitimimizde CSS Metni ve CSS Yazı Tipleri hakkında daha fazla bilgi bulabilirsiniz .