I understand that css rules can target elements specified by attribute values, e.g.:
input[type="text"] {}
Can I make a rule that targets elements which omit a certain attribute? For example, can I target elements that lack an href or elements that don’t specify a type?
You can follow this pattern:
The attribute selector is used to select elements with the specified attribute.
:notis supported in all modern browsers and IE9+, if you need IE8 or lower support you’re out of luck.