Fonts Reference

Fonts are specific to platform. You will have a different look and feel of a web page on different machines running different operating systems, like Windows, Linux, or Mac iOS. Here we are giving a list of fonts that are available in various operating systems.

HTML <font> tag is deprecated in version 4.0 onwards, and now all fonts are set by using CSS.

Syntax

Here is the simple syntax for setting the font of a body of a web page:

To set font using CSS class:

body{font-family:"new century schoolbook";}

To set font using inline CSS i.e., with HTML tag:

<body style = "font-family:new century schoolbook;">

HTML font Tag

HTML<font> tag is deprecated in latest versions of HTML. In older versions, a font tag can be used to add style, size, and color to the text on your website. You can use a <basefont&gt tag to set all of your text to the same size, face, and color. HTML font tags have three attributes called size, color, and face to customize your fonts.

Web safe fonts

CSS3 has adapted font combinations technology. If the browser doesn’t support the first font, then it tries the next font. Here is the list of CSS Web Safe Fonts.

Example of HTML Fonts

Let’s look at the basic example of the usage of the fonts in the HTML document

Open Compiler

<!DOCTYPE html><html><head><title>Font Setting Using CSS</title></head><body><p>
  Change any of the style and try it.
</p><div style="font-family:verdana;">
  This is demo for font family
</div><br /><div style="font-size:120%;">
  This is demo for font size
</div><br /><div style="font-size:14pt;">
  This is demo for font size
</div></body></html>

When we run the above code, the output window will pop up, displaying the text with different fonts displayed on the webpage.

Fonts for Microsoft Systems

Following are the fonts for Microsoft Systems listed below −

FontFontFont
Andale MonoArialArial Bold
Arial ItalicArial Bold ItalicArial Black
Comic Sans MSComic Sans MS BoldCourier New
Courier New BoldCourier New ItalicCourier New Bold Italic
GeorgiaGeorgia BoldGeorgia Italic
Georgia Bold ItalicImpactLucida Console
Lucida Sans UnicodeMarlettMinion Web
SymbolTimes New RomanTimes New Roman Bold
Times New Roman ItalicTimes New Roman Bold ItalicTahoma
Trebuchet MSTrebuchet MS BoldTrebuchet MS Italic
Trebuchet MS Bold ItalicVerdanaVerdana Bold
Verdana ItalicVerdana Bold ItalicWebdings

You can check example fonts here Microsoft Fonts Examples.

Fonts for Macintosh Systems

Following is the list of fonts supported by Macintosh System 7 and higher versions.

FontFontFont
American TypewriterAndale MonoApple Chancery
ArialArial BlackBrush Script
BaskervilleBig CaslonComic Sans MS
CopperplateCourier NewGill Sans
FuturaHerculanumImpact
Lucida GrandeMarker FeltOptima
Trebuchet MSVerdanaWebdings
PalatinoSymbolTimes
OsakaPapyrusTimes New Roman
TextileZapf DingbatsZapfino
TechnoHoefler TextSkia
Hoefler Text OrnamentsCapitalsCharcoal
GadgetSand

You can check example fonts here Mac Fonts Examples.

Fonts for Unix Systems

Following is the list of fonts supported by most Unix System variants

FontFontFont
CharterCleanCourier
FixedHelveticaLucida
Lucida brightLucida TypewriterNew Century Schoolbook
SymbolTerminalTimes
Utopia

You can check example fonts here Unix Fonts Examples.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *