The [attribute|=value] selector is used to select elements with the specified attribute starting with the specified value.
Asked
Active
Viewed 48 times
-6
-
Use this https://www.w3schools.com/css/css_attribute_selectors.asp to see the attribute selectors – Udendu Abasili Jan 18 '21 at 15:45
1 Answers
1
See the specification:
E[foo^="bar"]
an E element whose "foo" attribute value begins exactly with the string "bar"
E[foo|="en"]
an E element whose "foo" attribute has a hyphen-separated list of values beginning (from the left) with "en"

Quentin
- 914,110
- 126
- 1,211
- 1,335