To select elements in an HTML document that do NOT have a class, you can use this:
:not(.class)
For example:
p:not(.description) {
color: red;
}
Dream of running a solo Internet business? check out SOLO LAB
Published Feb 15 2023
To select elements in an HTML document that do NOT have a class, you can use this:
:not(.class)
For example:
p:not(.description) {
color: red;
}