When under my control, I like to order HTML attributes in this way.
- Identifiers
classidtypefornamerel
- HTML-native References
hrefsrcsrcsetaction
- Meta & Content
contentpatternvalueplaceholderalttitledata-*Attributes
- Accessibility
rolearia-*(in a logical order)tabindex
- Esoteric Library Attributes (sometimes the placement of these can't be controlled)
ng-*data-reactid
- Flags
checkeddisabledhidden