Selector Efficiency
1.
ID, e.g.
#foo
Class, e.g.
.foo
3.
Tag, e.g.
div
Adjacent Sibling, e.g.
header + main
5.
Child Combinator, e.g.
ul > li
6.
Descendant, e.g
ul li
7.
Universal, e.g.
*
Attribute, e.g.
a[href=“https://bitsofco.de”]
9.
Pseudo-classes & pseudo-elements, e.g.
a:visited
Fastest
Slowest