The CSS Syntax

A CSS tag or the CSS syntax is built up using three elements:

  1. Selector
  2. Property
  3. Value

Example:

selector{property: value;}

The selector is generally the HTML element or tag that you wish to style or define

Example:

body{property: value;}

The property is the part of the selector that you wish to change.

Example:

selector{background: value;}

The value is the properties element which can accept single or multiple elements/values.

Example:

selector{property: #000000;}

From our 3 examples we tell the <body></body> tag that it has to have a black background (#000000)

Example:

body{background: #000000;}