Skip to content

Glossary: CSS Layout and Responsive Design

Attribute selector

Also written: attribute selectors

A selector that matches elements by an attribute in square brackets, such as `[data-theme="dark"]` or `a[aria-current]`.

Where the book teaches it

Related terms

aria-currentdata- attributes