:empty
Die CSS-Pseudo-Klasse :empty wählt jedes Element aus, das für einen gegebenen Selektor keine Kindelemente enthält.
/* Changes the background color of every empty section element */
section:empty {
background-color: tomato;
}
Wenn wir diesen Code ausführen würden auf …