Tweak HTML output

Most notably, transpose table output.