Syntax description:
E -- Element
ATT -- attribute
Val -- Attribute Value
E: First-child
E: Last-child
Matching the Eelement with the ATT attribute in the document
Syntax: E [ATT]
Matches the Eelement in the document with the ATT attribute and its value is Val.
Syntax: E [ATT = Val]
Matching the Eelement in the document with the ATT attribute and one of the values (multiple values are separated by spaces) is Val (Val cannot contain spaces)
Syntax: E [ATT ~ = Val]
Matching an Eelement with the ATT attribute and one of the values is Val, or followed by a hyphen starting with Val
Syntax: E [ATT | = Val]
Matches the Eelement in the document with the ATT attribute and Its Value prefix is Val.
Syntax: E [ATT ^ = Val]
Matches the Eelement in the document with the ATT attribute and Its Value suffix is Val.
Syntax: E [ATT $ = Val]
Matching the Eelement with the ATT attribute and Val in the document
Syntax: E [ATT * = Val]