HTML - Attribute
Attribute names are case-insensitive.
Order does not matter but some attributes are more searched (ie have more functionality) while reading HTML.
The code guide gives the following order that reflects this idea
- src, for, type, href, value
- title, alt
Without any value
How to track the modification of values?
Note on Body attributes modifications: If a document has two body elements, it's possible that the browser will overwrite the attributes of the first body element with the attributes of the second.