My thoughts:
- How much whitespace you use depends on how much content you want, vs how much you have to pay for server memory and download bandwidth.
- I use only one space for each indent in tight memory situations. But I use a monospace editor font.
- I have only one level of indentation for each table:
<table><tr>
<td>contents</td>
<td>contents</td>
<td>contents</td>
</tr><tr>
<td>contents</td>
<td>contents</td>
<td>contents</td>
</tr></table>
- I base my decision of whether to use tables or divs to format the page by how I want the page to fail it the browser window is too small:
-- When div is used with Mozilla, it overlaps the elements (especially images) on the screen when the browser window is too narrow.
-- When div is used with IE, it collapses the horizontally spaced elements into a vertical column when the browser window is too narrow.
-- When tables are used with either Mozilla or IE, a horizontal slide bar appears at the bottom of the screen, and the display is wider than than the window.
- I totally can't stand the variable name standards which originated with c (probably because I think C is one of the third worst programming language). I string together enough characters to do the job, e.g. digindx for digit index.
- I usually choose code to reflect the mix of browsers I expect to be using it, but I also realize that if I use deprecated code, I will have a big job to do later.