PeterBox Homepage
Welcome stranger, to Singapore, 16.5.08 18:10:06

.NET Development Handbook

.NET Development Handbook .NET Development Handbook .NET Development Handbook .NET Development Handbook
.NET Development Handbook

7 HTML

7.1Formatting Rules for HTML
7.1.1HTML Visual Studio Settings
7.1.2Indenting
7.1.3Use of Upper and Lower Case
7.2Browser Version
7.3Depreciated Elements

7.1 Formatting Rules for HTML

HTML documents should be formatted according the general formatting rules specified in 3.2 Coding Format and according to the rules from this chapter.

7.1.1 HTML Visual Studio Settings

Switch off all formatting support from Visual Studio, because it makes often a mess.

 

7.1.2 Indenting

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>

7.1.3 Use of Upper and Lower Case

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.

7.2 Browser Version

Since peterBox.com is not a commercial website, it抯 not necessary to support all browsers. We will 燾oncentrate on Microsoft Internet Explorer 5.0 and above, however most pages display properly also in other browsers.

7.3 Depreciated Elements

???

Chapters Overview

1Introduction
2Overview Development Process
3General Guidelines
4.NET Framework
5Windows Client
6ASP.NET
7HTML
8Cascading Style Sheets
9ADO.NET
10SQL Server
11Appendix
  Version 0.8b contact@peterbox.com ©2002 Peter Huber