Rule | The whole thing is called a rule |
---|---|
Selector | "h2" is the selector and determines what the rule applies to |
Declaration | I commonly call these "property-value pairs".
These are the actual effect of applying the rule to an element.
|
You would only find a rule in a stylesheet, either an internal or an external stylesheet. You will find properties in local styles. Local styles of course don't need selectors since the styles are applying to element the style attribute is in.
Back to Knowledge Dump