Selector Syntax
Learn how to select like a boss!
- [attr^='value'] - Selects elements with the attribute value starting with 'value'
- [attr*='value'] - Selects elements with the attribute value containing 'value' anywhere in the string
- [attr$='value'] - Selects elements with the attribute value ending with 'value'
- [attr~='value'] - Selects elements with the attribute value containing 'value' separated by a space
- [attr|='value'] - Selects elements with the attribute value equal to 'value' exactly
- [attr|='value', 'other-value'] - Selects elements with the attribute value equal to either 'value' or 'other-value'