The * selector (or universal selector) works like a wild card character, selecting all elements on a page.

* {
    css declarations;
}
* {
   color: #3366ff;
   font-size: 1.1em;
   background: #ffff99;
}

In the above example, the color, font-size and background styles will be applied to all elements on a webpage.

Click the button below to experiment with this selector.

Give it a Try!

2.0Firefox 7.0Explorer 4.0Chrome 3.1Safari 9.6Opera