attributestyle
Attributestyle is a term used in web development to describe a styling pattern in which HTML attributes—most commonly data attributes—are used to convey styling information and drive CSS rules or JavaScript-based style changes. It is not a formal standard, but a practical approach that sits alongside traditional class-based and inline styling strategies.
In typical usage, elements receive data attributes such as data-theme='dark' or data-style='card'. CSS selectors like [data-theme='dark']
Benefits include reduced class clutter, easier theming, and a more explicit linkage between presentation and semantic
Relation to other concepts: attributestyle leverages CSS attribute selectors and is often used with design tokens