MDN Web Docs

Reference

Combinators and separators

The CSS selectors module also introduces the column combinator (||). Currently, no browsers support this feature.

Selectors

The CSS selectors module also introduces the :blank, :current, and :local-link pseudo-classes. Currently, no browsers support these features.

Terms

Guides

CSS selectors and combinators

Overview of the different types of simple selectors and various combinators defined in the CSS selectors and the CSS pseudo modules.

CSS selector structure

Explanation of the structure of CSS selectors and the terminologies introduced in the CSS selectors module, ranging from "simple selector" to "forgiving relative selector list".

Pseudo classes

Lists the pseudo-classes, selectors that allow the selection of elements based on state information that is not contained in the document tree, defined in the various CSS modules and HTML.

Using the :target pseudo-class in selectors

Learn how to use the :target pseudo-class to style the target element a URL's fragment identifier.

Privacy and the :visited selector

Explores the style limitations set on the :visited class for user privacy.

CSS building blocks: CSS selectors

Introduction to basic CSS selectors, including tutorials on Type, class, and ID selectors, Attribute selectors, Pseudo-classes and pseudo-elements, and Combinators.

Learn: UI pseudo-classes

Learn the different UI pseudo-classes available for styling forms in different states.

Selection and traversal on the DOM tree

The selectors API enables using selectors in JavaScript to retrieve element nodes from the DOM.

Specifications

Specification
Selectors Level 4

See also

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗