The
font CSS property is either a shorthand property for setting
font-style,
font-variant,
font-weight,
font-size,
line-height, and
font-family; or a way to set the element's font to a system font, using specific keywords.
/* A font family name and a generic family name */
font-family: Gill Sans Extrabold, sans-serif;
font-family: "Goudy Bookletter 1911", sans-serif;
/* A generic family name only */
font-family: serif;
font-family: sans-serif;
font-family: monospace;
font-family: cursive;
font-family: fantasy;
font-family: system-ui;
/* Global values */
font-family: inherit;
font-family: initial;
font-family: unset;
Example:
<h3 style="font-family:Gill Sans Extrabold, sans-serif;">this text will use Verdana font</h3>
Read more:
font - CSS | MDN
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати