CSS – Attribute selectors
Attribute selectors allow you to select CSS elements based on their attributes or values.
For example, if you want to select an image named “great.gif” you can do it by using the following rule:
1img[src="great.gif"] { border: 3px solid #000; …