Represent State with HTML Attributes, Not Class Names

from blog Aleksandr Hovhannisyan, | ↗ original
You might not need another CSS class. Use HTML attributes for state and style those states with the CSS attribute selector.