Images

Accessing Selectors

Images

         To view the accompanying video for this lesson, please visit mhprofessional.com/nixoncss/.

The means by which you access one or more elements is called selection, and the part of a CSS rule that does this is known as a selector. As you might expect, there are many different varieties of selector.

For example, you can select by the type of element to be styled (such as <p>, <div>, <img>, and so on), by whether an element is contained within another (is descendant), by descendant elements that are direct children (and ...

Get CSS & CSS3: 20 Lessons to Successful Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.