Universal - CSS class selector
Milap Patel
Milap Patel
Node.js | React | JavaScript | PHP | WordPress | Front-end | SASS | Mongodb | Laravel | Drupal | MySQL
The Universal Selector is the * in CSS. Literally the asterisk character. It is essentially a type selector that matches any type. Type meaning an HTML tag like div, body, button, or literally any of the others.
For Example:
* {
? margin: 0;
? padding: 0;
}
*.component {? }
The specificity of those is exactly the same, as the universal selector hold no specificity value at all.