CSS CSS Basics Understanding Values and Units Fonts and Line Height Review

The font-size property lets us specify the font for an element.

which property let us specify the font for an element

1 Answer

Jamie Reardon
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

The font-size property let's you define the size of the text. You have various other font properties to style text, such as:

  • font-weight - which defines the weight of the text, e.g. bold, regular, light and can take both keywords and values.
  • font-style - controls the appearance of the text, such as italic.
  • font-family - defines the type of font the text will use.
  • font - a shorthand property for setting all the font properties in one declaration.