Computer scienceFrontendCSSSelectors in Depth

Attribute selectors and Universal selector

Match the attributes

Report a typo

Match the attribute selectors with the elements they select.

Match the items from left and right columns
[attribute$="string"]
[attribute]
[attribute|="string"]
[attribute*="string"]
[attribute="string"]
[attribute^="string"]
[attribute~="string"]
Elements with this attribute that end in "string"
Elements with this attribute that start with "string"
Elements with this attribute that contain "string" as a separate word
Elements with this attribute that contain "string"
Elements with this attribute
Elements with this attribute that equal "string"
Elements with this attribute that have a prefix "string"
___

Create a free account to access the full topic