- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- CSS Font Family
CSS Text & Fonts
CSS Font Family
The CSS Font Family property is used to specify the typeface used to display text on a webpage.
Different fonts can significantly affect the appearance, readability, and overall design of a website. The supporting concepts are explained in CSS Font Size and Web Fonts & Typography.
CSS allows you to specify:
- A single font
- Multiple fallback fonts
- Generic font families
If the browser cannot find the first font, it will try the next font in the list.
Syntax
CSS Font Family Syntax
css
selector {
font-family: font-name;
}