CSS

Cascading Style Sheets - CSS - is a method for adding style (fonts, colors, spacing, layout) to documents, most commonly (X)HTML.

The definition of a CSS element consists of a selector tag and a definition block describing the formatting.

The selector (an element type, a unique ID or a class) identifies the HTML element that the formatting applies to.

The declaration block starts with {, ends with } and contains one or more declarations.

Each declaration consists of a CSS property name followed by a colon and the value for the property. Each declaration ends with a semicolon.

Examples

An element type selector:

p {
    text-size: 14px;
}

An ID selector:

#name {
    color: red;
}

A class selector:

.class {
    text-align: center;
}

More information

For more information, see W3Schools.com