HTML documents should be formatted according the
general formatting rules specified in 3.2 Coding Format and according to the rules from this chapter.
Switch off all formatting support from Visual Studio,
because it makes often a mess.
If reasonable, put every HTML block opening element
and closing element on its own line if they contain other HTML elements. Indent
whatever they contain on another line:
<table id="Table1" cellspacing="0" cellpadding="0"
width="100%" border="0">
<tr>
<td>
some
text
<asp:Panel
id="NameboxPanel" runat="server">
some
more text
<table>
<tr>
<td>something</td>
<td>something else</td>
</tr>
</table>
</asp:Panel>
</td>
<td>
<img
src="IMAGES/PeterMonkey.jpg">
</td>
</tr>
</table>
HTML is not case sensitive. Unluckily, generated
HTML code is created sometimes in upper case, sometimes in lower case. It would
be too much work to reformat all generated code, but manually entered HTML code
should be written in lower case.
Since peterBox.com is not a commercial website, it’s
not necessary to support all browsers. We will concentrate on Microsoft
Internet Explorer 5.0 and above, however most pages display properly also in
other browsers.
???
Chapters Overview