Styling Text

Some of the most common text properties are:

  • color: the color of the text, by name or hex code
  • font-family: a list of fonts, or font classes like serif, sans-serif, or monospace
  • font-weight: normal, bold, or a number from 1 to 1000
  • font-size: the size of the text, in pixels (px) or em-units
  • text-decoration: none, underline, overline, line-through, or blink
  • text-align: left, right, center, or justify

Try editing some of these styles below: