CSS 3 · Selectors and the box model

Common selectors

Select by element, class, id, child, descendant and attribute.

p { }
.card { }
#header { }
ul > li { }
nav a { }
input[type="email"] { }

Official CSS 3 documentation

More selectors and the box model commands

All selectors and the box model commands · CSS 3 cheatsheet

Was this page helpful?