The font-family
property specifies the font for an element. There are two types of font family names:
family-name
- The name of a font-family
, like times
, courier
, arial
, etc.
generic-family
- The name of a generic-family
, like serif
, sans-serif
, cursive
, fantasy
, monospace
.
Setting the font of a <p>
element.
p{ font-family: Arial, Helvetica, sans-serif; }
font-family: value;
For more information, see http://www.w3schools.com/cssref/pr_font_font-family.asp
Found a bug in the documentation? Let us know at documentation@code.org