Blog Post

The Selector With No Class

What does this selector select?

.label span:not([class]) {}<em> </em>Code language: HTML, XML (xml)
Answer It selects a span element within an element that has a class of “label” as long as that span element does not have a class attribute.