Le proprietà CSS per la tipografia controllano l'aspetto del testo.
Proprietà principali
body {
font-family: "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
font-weight: 400; /* normal=400, bold=700 */
line-height: 1.5;
letter-spacing: 0.5px;
}Shorthand font
p {
font: italic 700 16px/1.5 Arial, sans-serif;
/* style weight size/line-height family */
}Google Fonts
/* Nel head HTML */
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
/* Nel CSS */
body { font-family: "Roboto", sans-serif; }