CSS * selector
Complete CSS Selector Reference Manual
Example
Select all elements and set their background color:
{
background-color:yellow;
}
Try it »
Definition and Usage
-
The * selector selects all elements.
-
The selector can also select all elements inside another element:
Example
Choice
All elements inside an element:
div *
{
background-color:yellow;
}
Try it »
Browser Support





All major browsers support the * selector.