:empty

Term side of the Card
Topic: Pseudo Classes
Unit title: :empty
Categories: Pseudo-class
Explanation side of the Card

Explanation: The pseudo-class that targets elements with no children or content, including text or whitespace. It's useful for styling elements that are intentionally left empty, such as placeholders or for hiding them completely.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 3.1
Availability: