Skip to content

Glossary: CSS Layout and Responsive Design

data- attributes

Also written: data-theme

HTML attributes starting with `data-` whose names you invent, such as `data-theme="dark"`; CSS can select them.

Where the book teaches it

Related terms

Attribute selector