The font-family property defines which font is used.
p {
font-family: "Times New Roman"; /* Specific font name */
/* or */
font-family: serif; /* Generic name */
/* or */
font-family: "Arial", sans-serif; /* Comma-separated list */
}
*When listing multiple fonts, always list a generic name last.
The font-size property specifies the size of the font.
p {
font-size: 12px;
font-size: 1.5em;
font-size: 100%;
}
Pixels
"em"
Percentage
p {
font-style: italic;
font-weight: bold;
font-size: 10px;
font-family: sans-serif;
}
OR
p {
} font: italic bold 10px sans-serif;
Let's develop it