Week 3: Review CSS rules

There are four main parts to a style rule:

  1. Selector: which tag the rule affects
  2. Declaration: what happens when the rule is applied; composed of property/value pairs
  3. Property: what will be affected
  4. Value: how it is affected

css

 

We’ll cover classes and IDs next week.