I know this is weird, but how can I select all IMGs in a document that has no source (I'm talking about a CSS selector)
That is, I want to choose
<IMG>
but not
<IMG src="/my_file.png">
Answer
img:not([src]) { /* style here */ }
You need to use a selector :not
:not