# Handling State w/ Attributes Instead of Classes

When handling HTML state, it's common to use classes to hold it (example: class="is-active" ). However, this muddles the distinction between CSS that purely manages style and that which handles state.

In an effort to make things more intentional, an alternative is to use an [data-is-active] attribute to note the active circle, instead of a class.