Search results
The CSS font-family Property. 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".
The font-family property specifies the font for an element. The font-family property can hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font.
Jun 13, 2024 · 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.
Dec 6, 2023 · A font family is the complete set of styles. Including such a font in a document or design is done by defining a separate @font-face declaration for each font resource. The properties, at-rules, and descriptors of the CSS fonts module enable the downloading of multiple variations of a font.
Font styles. Most fonts have various styles within the same family, typically a bold and an italic one, often also a bold italic style, somewhat less often a small-caps and in a few cases extra-light/extra-bold or stretched/condensed versions. The table below shows a number of different styles.
May 15, 2015 · 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.
Feb 20, 2011 · The font-family property holds several font names to provide a "fallback" system. The browser tries each font family in the order that they are listed; if the browser does not support the first font, it tries the next font, and so on, down the list.