CSS Tutorial

CSS Selectors

Source: Dave Gray

Selectors

Target elements by tag, class, id, or attribute.

CSS
p { color: #374151; }
.highlight { background: #FFE55E; }
#hero { padding: 2rem; }