Universal selector

Universal selector

The universal selector, written “*”, matches the name of any element type. It matches any single element in the document tree.

If the universal selector is not the only component of a simple selector, the “*” may be omitted. For example:

* *[LANG=fr] and [LANG=fr] are equivalent.
* *.warning and .warning are equivalent.
* *#myid and #myid are equivalent.

Leave a Reply

Your email address will not be published. Required fields are marked *