CSS [attribute$=value] Selector (original) (raw)
Last Updated : 29 Aug, 2024
The [attribute$=”value”] selector is used to select those elements whose attribute value ends with a specified value "value". The value need not to be present as separate word. It may be a part of another word or expression but it needs to be present at the end.
**Syntax:
[attribute$="value"] {
// CSS property
}
**Example 1: In this example, we are using the above-explained property.
html `