The universal selector selects all the elements available in the document.
Here is the simple syntax to use this selector −
Here is the description of all the parameters used by this selector −
* − A symbolic star.
Like any other jQuery selector, this selector also returns an array filled with the found elements.
$('*') selects all the elements available in the document.
Following example would select all the elements and will apply yellow color to their background. Try to understand that this selector will select every element including head, body etc.
This will produce following result −