Choosing the right selector is the key to working successfully with CSS. The CSS3 speci fication defines more than 40 selectors, allowing you to target your styles accurately without the need for extra HTML markup. The latest versions of all browsers support the full range of CSS3 selectors, plus some nonstandard ones. However, not everyone uses the latest browsers, so—at least in the early stages of learning CSS—it makes sense to concentrate on selectors that are supported even by older browsers.
KeywordsAttribute Selector Text Color Style Sheet Document Object Model Type Selector
Unable to display preview. Download preview PDF.