/* Case sensitive */ a[href*='css-tricks' s] {} /* Case insensitive */ a[href*='css-tricks' i] {} Adding an s makes the selector case-sensitive and i makes it case-insensitive. Source