You are at the section Intro to CSS
Fun With Fonts: Font Families
examples using Font CSS tags
Using the font element: (you can also use h1, h2, h3, h4, h5, h6, and p elements too)
<font style="INSERT CSS HERE">
We're going to change the font families used. Let's use Times New Roman
<font style="font-family:Times New Roman">
This is in Times New Roman
</font>
And now, here's Georgia
<font style="font-family:Georgia">
This is in Georgia
</font>
And now, here's Verdana
<font style="font-family:Verdana">
This is in Verdana
</font>
And now, here's Arial
<font style="font-family:Arial">
This is in Arial
</font>
And now, here's Courier New
<font style="font-family:Courier New">
This is in Courier New
</font>
And now, here's Lucida Console
<font style="font-family:Lucida Console">
This is in Lucida Console
</font>
And now, here's Helvetica
<font style="font-family:Helvetica">
This is in Helvetica
</font>
And now, here's Arial Black
<font style="font-family:Arial Black">
This is in Arial Black
</font>
And now, here's Comic Sans MS
<font style="font-family:Comic Sans MS">
This is in Comic Sans MS
</font>
And now, here's Impact
<font style="font-family:Impact">
This is in Impact
</font>
And now, here's Tahoma
<font style="font-family:Tahoma">
This is in Tahoma
</font>
And now, here's Trebuchet MS
<font style="font-family:Trebuchet MS">
This is in Trebuchet MS
</font>
And now, here's Gadget
<font style="font-family:Gadget">
This is in Gadget
</font>
And now, here's one you might not have: Distant Galaxy
<font style="font-family:Distant Galaxy">
This is in Distant Galaxy
</font>
You may want to stick with the web-safe font families so that they can display on computers
that have the most common fonts. Use the obscure fonts at your own risk, but to be safe,
list in order the font families of preference separated by commas.
© 1995-2023. davesfunstuff.com. All Rights Reserved. Reproduction of any part of this website without expressed written consent is prohibited.
Help Support Our Ad-Free Web Section
Just use our PayPal link to pay.
Please to help pay for webhosting, domain payments, expenses and labor in keeping this section going. Thank you.
,
,
,
,
,
,
,
Notice Of Disclosure (updated June 2023):
"David Tanny is the owner and operator of the domains davesfunstuff.com and davidtanny.com"