HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Select all elements, and set their background color to yellow
The *
selector selects all elements.
The * selector can also select all elements inside another element (See "More Examples").
Version: | CSS2 |
---|
The numbers in the table specifies the first browser version that fully supports the selector.
Selector | |||||
---|---|---|---|---|---|
* | 4.0 | 7.0 | 2.0 | 3.1 | 9.6 |
Select all elements inside <div> elements and set their background color to yellow:
div *
{
background-color: yellow;
}