Difference between revisions of "Selector (CSS)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(See also)
Line 32: Line 32:
  
 
* [http://www.w3.org/TR/CSS21/selector.html Selectors] @ W3C
 
* [http://www.w3.org/TR/CSS21/selector.html Selectors] @ W3C
 +
 +
[[Category:Cascading Style Sheets]]
 +
[[Category:Web design and development]]

Revision as of 18:02, 4 April 2016

In CSS, a selector is a pattern matching rule that determine which style rules apply to elements in the document tree.

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.

Fundamental selectors

Complex selectors

See also

External Links