Declaration Blocks

After each selector (or group of selectors) in a stylesheet, there is a declaration block contained in braces. This block can have one or more declarations in it, each consisting of properties and values. An HTML file might contain one or more instances of a selector (e.g., p = paragraph) in the markup, and if that HTML file is linked to the external stylesheet, it will take on the properties and values assigned to that selector.

[Menu Proxy — Headings — Online — Depth3 ]

Declaration

Declaration

A declaration describes how a selector should look or what it should do. It consists of a property and a value. A selector can have multiple declarations. They can be stacked on top of one another or just listed in a single line, as shown below. Either way, they need to be separated by semi-colons.

Property

Property

A property is the characteristic of the XHTML element that you want to change. Examples of common properties are color, font-size, and border-left. In the Advanced view of the Stylesheet Editor, properties can be organized into property groups (e.g., Font, Background, Border, Positioning).

Value

Value

The value is precise information about a property (e.g., 12 px, italic, blue).