First page Back Continue Last page Graphics
CSS Rules
To change the color of ALL <h2> tags from darkblue to green, simply change the called for color to “green.” The next time anyone sees the site, all the <h2> tags on all the pages will be green instead of darkblue.
These styles are called rules. Each rule consists of a selector and a declaration (which is made up of a property and a value).
In the example below, h2 is the selector, color is the property, and darkblue is the value. When used with web pages, selectors are usually HTML tags.
Syntax for a CSS rule:
- selector { property: value; }