I notice that everyone seems to use there own way to indent html code. For example: joelonsoftware.com seems to only indent tables, while most pages on microsoft.com seem to indent every nested tag.
I usually indent anything within a container tag, so it's easier to make out the hierarchy of the code. There's no particular reason I do it this way, I suppose, it just feels better to me to edit it that way.
I have tidy do indentation, and after I muck it up editing, I run it again to fix my formatting 8-}
If I weren't so lazy I'd keep two versions of my HTML files: a fully-indented one for editing, and then an automatically-generated one with all non-critical whitespace stripped out for publishing...
All our HTML is programatically generated. Flip a switch for indents. ;)
Do you really think white space slows down the browser's experience at all?
re: stripping out white space making a difference.
It depends on how busy your servers are, whether bandwidth is a bottleneck for you, and how large the HTML is that you're generating. In my experience, a "well indented" HTML file is generally going to be 10-15% whitespace (not scientific, just my small testing experience). This can make a rather substantial difference on large HTML, or when you're paying for metered access.
Of course, if you use mod_gzip or similar, you really don't have to worry about that tiny boost in filesize from indenting. As for hiding code from people, I don't see the point. If it's on the web it can be stolen. If you don't like that, then don't publish it.
Fog Creek Home