What property will you use to define the font family names and/or generic family names for an HTML element?
Explanation
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

@daria_shvydka thanks! improved question

2017 Dec 6, 1:15:56 PM

wrong >(

2017 Aug 9, 5:34:05 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes