CSS Information

HTML Information | CSS Colours
color - Text Colour

Sets text colours.
Value: Hex colour code, RGB colour code or colour name
Example:

color: #ABCDEF;
color: rgb(123, 456, 789);
color: red;

background-color - Background Colour

Sets background colours.
Value: Hex colour code, RGB colour code or colour name
Example:

background-color: #ABCDEF;
background-color: rgb(123, 456, 789);
background-color: red;

font-family - Font

Sets the font.
Value: A name of a font. Inside " if it contains a space.
Note: Use Google Fonts to find fonts.
Example:

font-family: Arial;

font-size - Size of the font

Sets the size of the text.
Value: Size of the text. Must end with "px" for pixels.
Example:

font-size: 64px;

text-decoration - Underline text

Underlines text
Value: "none" for no underline, "underline" for underline.
Example:

text-decoration: underline;

font-weight - Bold text

Bolds text
Value: "normal" for no bold, "bold" for bold.
Example:

font-weight: bold;

font-style - Italic text

Italics text
Value: "normal" for no italic, "italic" for italic.
Example:

font-style: italic;

text-align - Left-aligned, center-aligned and right-aligned

Italics text
Value: "left" for left-aligned, "center" for centred text, "right" for right-aligned
Example:

text-align: center;
text-align: right;