Search results
Jun 13, 2024 · font-family. The font-family CSS property specifies a prioritized list of one or more font family names and/or generic family names for the selected element.
- as specified
- depends on user agent
- yes
Learn how to specify the font for an element using the font-family property in CSS. See examples, syntax, values, browser support and related pages.
- no. Read about animatable
- yes
- depends on the browser
- CSS1
In CSS, we use the font-family property to specify the font of a text. Note: If the font name is more than one word, it must be in quotation marks, like: "Times New Roman". Tip: The font-family property should hold several font names as a "fallback" system, to ensure maximum compatibility between browsers/operating systems.
Aug 26, 2021 · Learn how to choose and use different fonts in your web design projects with CSS. See the syntax and examples of the font-family property and the generic and specific font names.
Syntax. The font-family property lists one or more font families, separated by commas. Each font family is specified as either a <family-name> or a <generic-name> value. The example below lists two font families, the first with a <family-name> and the second with a <generic-name>: font-family: Gill Sans Extrabold, sans-serif; Values. <family-name>
People also ask
What is a font-family property?
What are the different types of font family names?
What is a font family in CSS?
How to set a font-family property in HTML?
Jan 24, 2024 · As we looked at in Fundamental text and font styling, the fonts applied to your HTML can be controlled using the font-family property. This takes one or more font family names. When displaying a webpage, a browser will travel down a list of font-family values until it finds a font available on the system it is running on: