Select an element with empty class attribute (class="") using CSS?
css, css-selectors
Solution
You can use element-attribute selector here with an empty class value
div[class=""] {
color: red;
}
Demo
Note: You can replace the `div` with required element
Problem
Is there a CSS way to select an element that looks like that by class? ``` <a class="" href="..."> ``` Like a selector for empty class declarations?