data-type

<generic-family> — CSS reference

Generic font families request a class of fonts instead of a specific installed face. Generic keywords are unquoted; quoted monospace names a particular family.

Formal Syntax & Structure

css syntaxcss
font-family: monospace;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>&lt;generic-family&gt;</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{font-family:monospace}</style><body><div id="a">Example</div></body></html>
CSS Reference