
Understanding Style Rules :
In CSS, Style Rules express the style characteristics for an HTML element. A set of Style Rules is called a Style Sheet. A style rule consists of two parts: a selector and a declaration.
selector {attribute1:value; attribute2:value ...}
The selector determines the element to which the rule is applied.
The declaration details the exact property values.
The property is a quality or characteristic, such as color, font-size, or margin followed by a colon (:). The Value is the precise specification of the property, such as red, 12 pt (point) for a font-soze, or 10 px (pixels) for margin, followed by a semicolon (;)
You can combine CSS rules with HTML code in the following three ways: