O'Reilly logo

Sams Teach Yourself SVG in 24 Hours by Micah Laaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Font Classifications

To begin learning how to specify typefaces, you can explore the use of system fonts and classifications. This will seem, in many ways, like familiar terrain, as HTML uses a similar method. Fonts, whether system or encoded, are applied to text elements using the font-family style property. This property, like most others, uses a very simple syntax:

font-family:name
					

where name is the name of a system font, a font classification, or an encoded font's name.

Font classifications are general categories used to describe a type. There are six common font classification families: proportional, serif, sans-serif, monospace, cursive, and fantasy. Fonts such as Times New Roman, Bodoni, and Palatino are serif fonts. As a designer/developer, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required