universal

Universal Selector

Matches every element in the document regardless of type. It is often used for global resets or with combinators to target descendants.

*

Example

* { box-sizing: border-box; } /* Applies to every element */

✓ Matches

  • <div></div>
  • <p>Text</p>
  • <span></span>

✗ Does not match

  • <!-- comments are not elements -->
  • raw text nodes between elements

Browser support

Universal support in all browsers since CSS2.

Related selectors

← All CSS selectors · CSS selectors cheat sheet