What are CSS Selectors?

By: Dusty Arlia
Published on February 7, 2013
Last Updated on Friday, July 17, 2015 at 11:24 PM
Total Updates: 2

Selectors, as the name suggests, selects HTML elements to add style to. CSS selectors include HTML tag names, identifiers, and classes. Here is the basic structure of a CSS rule:

[selector]: {[rule];}

And here is an example of real CSS rule:

css rule