If you’re anything like me then you’ll hand-craft your code to give you a fine-grained control over how things are done. Like a lot of geeks, I’m a bit of a code-snooper and the OCD side of me feels more than a little violated when I see the butt-ugly source code that is invariably generated by drag-and-drop WYSIWYG HTML editors.
I’m afraid I can’t remember who originally mooted this idea on Twitter a good while back: does having your HTML tag attributes in a consistent order give your webpage a smaller file size after it’s been compressed?
After thinking about it and playing around with some examples myself the other day I can confirm that it’s true. I’ve also found some corroboration from Google.