The color
property is used to set the color of the text.
h1 {
color: green;
}
The background-color
property is used to set the background-color of the text.
h1 {
background-color: black;
}
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;
}
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;
}
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;
}
The line-height
property is used to specify the space between lines.
p {
line-height: 2;
}