/* 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; }
/* 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; }