[att]
|
Represents an element with the
att
attribute, whatever the value of the attribute.
|
[att=val]
|
Represents an element with the
att
attribute whose value is exactly "val".
|
[att~=val]
|
Represents an element with the att attribute whose value is a
whitespace-separated list of words, one of which is exactly "val".
|
if "val" contains whitespace, it will
never represent anything (since the words are separated by spaces).
|
also if "val" is the empty string, it will never represent anything.
|
[att|=val] |
Represents an element with the
att
attribute, its value either being exactly "val" or
beginning with "val" immediately followed by "-"
|
[att^=val]
|
Represents an element with the att attribute whose value
begins
with the prefix "val".
|
if "val" is the empty string then the selector does not represent anything. |
[att$=val]
|
Represents an element with the att attribute whose value
ends with the prefix "val".
|
if "val" is the empty string then the selector does not represent anything. |
[att*=val] |
Represents an element with the att attribute whose value contains at least one
instance of the substring "val".
|
if "val" is the empty string then the selector does not represent anything.
|
[attr op val i] |
Inclusion of i or I makes
comparison case-insensitive
|