What is the asterisk selector (known as Universal Selector)
About
The universal selector 1) is the star character. (asterisk U+002A
It permits to select all type of tag element. The selection matchs any tag name.
Example
All descendant elements of the body that have a foo attribute
body *[foo]
Syntax
*
The following expressions are equivalent
Name | Expression 1 | Expression 2 |
---|---|---|
Element selector |
|
|
Class selector |
|
|
id selector |
|
|