h1 {

font-size: 40px;

}

This will give the font a height of 40px.

Font weight

Font weight is how we describe the weight or body of the text. In simple terms, we are looking at how thick the font is. The values here can be as follows: normal, light, lighter, bold, semi-bold. But also numerical values such as 100, 300, 500, 700.

Each font has different weights that can be assigned to it, which can be seen at the link referenced earlier. An example of how this is used in a CSS document is as follows: