CSS font-family Property
Specify the text style for a paragraph:
text style family: "Times New Roman", Georgia, Serif;
Definition and Usage
The text style family property determines the textual style for an element.
The text style family property can hold a few textual style names as a "fallback" framework. On the off chance that the program does not bolster the primary text style, it attempts the following font.
There are two sorts of textual style family names:
- family-name - The name of a textual style family, as "times", "courier", "arial", etc.
- generic-family - The name of a conventional family, as "serif", "sans-serif", "cursive", "fantasy", "monospace".
Start with the textual style you need, and dependably end with a nonexclusive family, to give the program a chance to pick a comparative textual style in the conventional family, if no different text styles are available.
Note: Separate each an incentive with a comma.
Note: If a text style name contains blank area, it must be cited. Single statements must be utilized when utilizing the "style" property in HTML.
|Default value:||depends on the browser|
The numbers in the table indicate the primary program form that completely bolsters the property.
|A organized rundown of text style family names as well as nonexclusive family names|
|initial||Sets this property to its default esteem.|
|inherit||Inherits this property from its parent component.|