Topic: CSS Basics

Font properties – CSS

Preview

To change the font of an element using CSS, use the following properties:

font-style: italic;
font-weight: bold;
font-size: 20px;
line-height: 2;
font-family: Arial, sans-serif;

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.