CSS Attribute Selectors

The CSS attribute selector matches elements based on the presence or value of a given attribute.

The following CSS matches each image individually:

img[src*='winter'] {
  height: 50px;
}

img[src*='summer'] {
  height: 100px;
}
<img src='/images/winter.jpg'>
<img src='/images/summer.jpg'>

More information: MDN Attribute Selectors