type selector
A CSS selector that matches every element with a given tag name, such as button or p.
In more detail
They match every element of that type, so they are best for broad defaults. Type selectors have the lowest non-zero specificity.
Related terms
- specificity — The weight the browser gives a CSS selector, used to decide which rule wins when two set the same property.
- class selector — A CSS selector that matches elements with a given class name, written with a dot such as .card.
Taught in
- The Cascade Algorithm: Specificity, Inheritance And Source Order — Frontend Architecture & Web Platform