attribute selectors
selector
notes
[attribute="value"]
select elements with a specified attribute and value
[attribute^="value"]
attribute begins with a specified value (doesn't have to be a whole word).
[attribute$="value"]
attribute ends with a specified value.
[attribute*="value"]
attribute contains a specified value.
[attribute~="value"]
attribute value containing a specified word.
โญ๏ธ ๆณจๆ๏ผ่ฆใๆดๅๅฎๅญใไธๆจฃๆ็ฎโ๏ธ
ๅปๅ๏ผ"value is", "my value"
ไธๅ๏ผ"values", "my-value"
[attribute|="value"]
attribute starting with the specified value.
ๅปๅ๏ผ"value", "value-key" (followed by hyphen)
ไธๅ๏ผ"values"
Last updated