# CSS Syntax

The selector is followed by an opening brace {

The declaration may not consist of any spaces with the exception of an optional space after the colon. (See exceptions below.)

If a property value consists of a unit and unit of measure such as 80% or 2em, do not put a space between the unit and unit of measure.

All of the declarations for a particular selector end with a closing brace }

# CSS Professionalism

Put all global rules in an external style sheet. Use embedded styles only when the styles apply to one page only. Use inline styles only when the style applies to one element only.

Use comments to document the author, date, and sections of your style sheet. CSS comments are entered within /* these characters */

For maximum readability...

- Position the selector and opening brace { on its own line.
- Position each declaration on its own line. This also helps you see that each declaration is closed with a semicolon ;
- Position the closing brace } on its own line.

Use reset code.

Validate all CSS code.