Tuesday, August 26, 2008

Element Type Selector

The most basic CSS selector is the Element Type Selector. Any HTML tag name is an Element Type selector. An Element Type selector indicates the HTML tag to which the CSS declarations should be applied.
Example: p {color:red}
In the above example, the selector is p and the CSS declaration that will be applied to it is color:red .

No comments: