To apply CSS to all elements, use the CSS * Selector.

Example:

* {
   background-color: red;
}

This selects all the elements and changes their background color to blue.

BY Best Interview Question ON 22 Feb 2020