Menu
Fundamentals

CSS Selectors

Learn how to select and style HTML elements.

1What are Selectors?

CSS selectors are used to "find" (or select) the HTML elements you want to style.

Example Code
/* Element Selector */
p { color: red; }

/* ID Selector */
#header { background: blue; }

/* Class Selector */
.center { text-align: center; }

Finished reading?

Mark this topic as complete to track progress.