by hk1337 · 3y ago · 0 comments
[title^=“old”]
and
[title$=“old”]
and
[title$=“old”]
Once you get used to using these, and their relatives, you find all kinds of uses for them, like applying styles only to telephone links:
a[href^="tel:"] ^ means match input start
$ means match input end
Makes remembering the CSS selector syntax easier once you know that. (Or makes the regex syntax easier to remember?)