Pattern:
[attr~=val]
Definition:
The [attr~=val] selector matches any element with the attr attribute, and one of its attr attribute's value (separated by whitespaces) is exactly val.
Examples:
Style all elements with a title attribute whose value contains the word "highlight"
1 | [title~=highlight] { background-color : yellow; } |
Please login to continue.