How do i order my HTML attributes

I wil keep it simple by listing the order, if needed i will add a tag with the extra info needed.

Globaly

  1. class
  2. id, name
  3. data-*
  4. src, for, type, href, value
  5. title, alt
  6. role, aria-*

The forms tag

  1. method
  2. action