Section 1: CSS Declarations

Common Declaration Properties and Values

Below are some common CSS declaration properties and the values that can be associated to them. Please note, this is simply a table of commonly-used declaration properties and their values. You will be introduced to these (and other) declaration properties and values throughout this section; however, it is important to note that there are many declaration properties and values that will not be introduced. If you would like a more exhaustive list of CSS declaration properties and their associated values, simply conduct an Internet search using the search string "CSS declarations" or "CSS properties and values" to learn more.

Common Declaration Properties and Values

Declaration Property Associated Values Purpose
Color Color name (red, green, blue, etc.)

Hexadecimal value (#0000FF, etc.)

Used to change the color of text listed in an HTML document.
Background Color Color name (red, green, blue, etc.)

Hexadecimal value (#FFFFFF, etc.)

Used to change the background color of an element in an HTML document.
Font Family Specific font faces (Arial, Courier, etc.)

Generic font faces (serif, sans-serif, etc.)

Used to change the font face of text listed in an HTML document.
Font Size Absolute size descriptors (small, medium, 12 pt., etc.)

Relative size descriptors (smaller, larger).

Used to change the font size of text lited in an HTML document.
Font Weight Absolute weight (normal, bold, 100, etc.).

Relative weight (lighter, bolder, etc.).

Used to change the font weight of the text listed in an HTML document.
Text Align Position (left, right, centr, etc.) Used to align text and images listed in an HTML document.