Text Color

The color property is used to set the color of the text.

h1 {
  color: green;
}

Background Color

The background-color property is used to set the background-color of the text.

h1 {
  background-color: black;
}

Text Alignment

The text-align property is used to set the horizontal alignment of a text. A text can be left or right aligned, centered, or justified.

h1 {
  text-align: center;
}

h2 {
  text-align: left;
}

h3 {
  text-align: right;
}

Text Decoration

The text-decoration property is used to set or remove decorations from text. The value text-decoration: none; is often used to remove underlines from links.

a {
  text-decoration: none;
}

Text Transformation

The text-transform property is used to specify uppercase and lowercase letters in a text.

p {
  text-transform: uppercase;
}

p {
  text-transform: lowercase;
}

p {
  text-transform: capitalize;
}

Line Height

The line-height property is used to specify the space between lines.

p {
	line-height: 2;
}