The Rule: Selector and Declaration

Each rule has two parts - the selector and the declaration.


  h1 {color:red}
Left side of the rule: the selector.
The part of the rule that selects the parts of the document to which the styles should be applied
Right side of the rule: the declaration.
A combination of a CSS property and a property value. Declarations always begin and end with curly braces.
practice

Go to the folder CSS sample 1 folder .
Open "default.css" in a Text Editor.
Open "sound_proof_book.html" in a browser.
Add a rule that makes all level 2 headings dark blue.

Refer to The CSS color chart