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 there are five generic font families: Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance. Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.
Aug 26, 2021 · How to use the font-family property. In CSS, the font-family property defines a specific font for an element and how its text content will look and be rendered. The syntax for the font-family property is: element { font-family: value; }
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 are the different types of font family names?
What is font-family CSS?
What is a font-family property?
How to change font family in CSS?
Jun 17, 2013 · The font-family property defines the font that is applied to the selected element. The font that is selected is not a single font face, but a “family”, and thus may be dependent on other typographic property values to select the correct face within the family. body { font-family: Arial, Helvetica, sans-serif; }