CSS selectors are used to declare which of the markup elements a style applies to, a kind of match expression. Selectors may apply to all elements of a specific type, or only those elements that match a certain attribute; elements may be matched depending on how they are placed relative to each other in the markup code, or on how they are nested within the document object model. Pseudo-classes and pseudo-elements are also CSS selectors. Examples: ID selectors... Red text. Blue text. Class selectors... Green text on black bg. Yellow text. Red text. Green text. Green text.
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dcterms:subject | |
abstract |
|