Difference between revisions of "Selector (CSS)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) |
Karl Jones (Talk | contribs) (→Description) |
||
Line 6: | Line 6: | ||
Selectors may range from simple element names to rich contextual patterns. | Selectors may range from simple element names to rich contextual patterns. | ||
+ | |||
+ | == Case sensitivity == | ||
The case-sensitivity of document language element names in selectors depends on the document language. | 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. | + | For example, in [[HTML]], element names are case-insensitive, but in [[XML]] they are [[case-sensitive]]. |
== Fundamental selectors == | == Fundamental selectors == |
Revision as of 10:49, 25 April 2016
In Cascading Style Sheets, a selector is a pattern matching rule that determine which style rules apply to elements in the document tree.
Contents
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.
Case sensitivity
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.
Fundamental selectors
Complex selectors
See also
- Cascading Style Sheets
- Declaration (CSS)
- Document Object Model
- External style sheet
- Rule (CSS)
- Style sheet (CSS)
- Style sheet (web design)
External Links
- Selectors @ W3C