When under my control, I like to order HTML attributes in this way.
- Identifiers
class
id
type
for
name
rel
- HTML-native References
href
src
srcset
action
- Meta & Content
content
pattern
value
placeholder
alt
title
data-*
Attributes
- Accessibility
role
aria-*
(in a logical order)tabindex
- Esoteric Library Attributes (sometimes the placement of these can't be controlled)
ng-*
data-reactid
- Flags
checked
disabled
hidden