I have a simple example explaining the not selector in CSS. I am expecting every element to have the border red. But none is having. Where is the problem?
[name!='er']{border:2px solid red;}
<p name='peter'>This is paragraph 1.</p>
<p name='julie'>This is paragraph 2.</p>
<p name='jennifer'>This is paragraph 3.</p>
<p name='george'>This is paragraph 4.</p>
<p name='gilbert'>This is paragraph 6.</p>
<span name='rosy'>This is span 1.</span>
<span name='robert'>This is span 2.</span>
https://api.jquery.com/attribute-not-equal-selector/
This selector exists in jQuery. I hoped same for CSS also. Isn't it?