Difference between revisions of "Selector (CSS)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Def)
 
(singular)
Line 1: Line 1:
In [[Cascading Style Sheets|CSS]], '''selectors''' are pattern matching rules that determine which style rules apply to elements in the [[Document Object Model|document tree]].  
+
In [[Cascading Style Sheets|CSS]], a '''selector''' is a pattern matching rule that determine which style rules apply to elements in the [[Document Object Model|document tree]].  
  
 
If all conditions in the pattern are true for a certain [[element]], the selector matches the element.
 
If all conditions in the pattern are true for a certain [[element]], the selector matches the element.

Revision as of 17:42, 10 May 2015

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

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.

External Links