It is used to select elements with a specified attribute. It is possible to add css that have specific attributes or attribute values.

It is used to select elements with an attribute value containing a specified word.

BY Best Interview Question ON 13 Jan 2019

Example

a[href="#"] {
background-color: yellow;
}