CSS Syntax

CSS uses a number of keywords for the names of various properties providing a simple syntax. There are four main parts that must be included: selector, declaration, properties and values.

selector { property: value; }

Selector. The part of the rule that selects the parts of the document to which the styles should be applied. Declaration. A combination of a CSS property and a property value. Declarations always begins and ends with curly braces.