Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Selector (CSS)

3 tags 1 category

A CSS selector is the part of a CSS rule that describes what elements in a document the rule will match. The matching elements will have the rule’s specified style applied to them.

The selectors here are “p” (which applies the color green to the text inside any <p> element), “div.warning” (which makes any <div> element with the class “warning” look like a warning box), and “#customized”, which sets the base font of the element with the ID “customized” to 16-pixel tall Lucida Grande or one of a few fallback fonts.

We can then apply this CSS to some HTML, such as:

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…