Rule Sets

A rule set (also called a rule) comprises a selector followed by a declaration block; the rule set applies the declarations listed in the declaration block to all elements matched by the selector.

Here’s an example of a rule set:

h2 {
  color: #666;
  font-weight: bold;
}

User-contributed notes

Related Products