Access operators that match portions of strings inside attribute values.

PHOTO EMBED

Thu Jun 17 2021 11:47:33 GMT+0000 (Coordinated Universal Time)

Saved by @hisam #css

/* A href that contains “example.com” */
[href*='example.com'] {
  color: red;
}

/* A href that starts with https */
[href^='https'] {
  color: green;
}

/* A href that ends with .com */
[href$='.com'] {
  color: blue;
}
content_copyCOPY

You can access operators that match portions of strings inside attribute values.