Difference between revisions of "Selector (CSS)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) |
Karl Jones (Talk | contribs) (→See also) |
||
Line 14: | Line 14: | ||
* [[Cascading Style Sheets]] | * [[Cascading Style Sheets]] | ||
+ | * [[Declaration (CSS)]] | ||
* [[Document Object Model]] | * [[Document Object Model]] | ||
Revision as of 09:06, 9 September 2015
In CSS, a selector is a pattern matching rule that determine which style rules apply to elements in the document tree.
(TO DO: expand, organize, cross-reference, illustrate.)
Description
If all conditions in the pattern are true for a certain element, the selector matches the element.
Selectors may range from simple element names to rich contextual patterns.
The case-sensitivity of document language element names in selectors depends on the document language. For example, in HTML, element names are case-insensitive, but in XML they are case-sensitive.
See also
External Links
- Selectors @ W3C