The images with the title attribute containing the word "animal" gets a yellow border.
<style> [title~=animal] { border: 5px solid yellow; } </style> <img src="https://res.cloudinary.com/demo/image/upload/w_400/sheep.jpg" title="animal" width="400" height="250"> <img src="https://res.cloudinary.com/demo/image/upload/w_400/fat_cat.jpg" title="animal" width="400" height="266">