HTML STANDARDS
Introduction
The Hypertext Mark-up Language (HTML) is a
structured mark-up language used to create Web pages. A mark-up language like HTML is simply a
collection of text codes, called elements that are used to indicate the structure
and format of a document.
This page highlights some standards that must be
followed when designing web pages. This will ensure that the pages are re-usable and easily maintainable.
a. Tags
i. Capital Letters:
Keep to the following construct:
<H1> My Header</H1>
And NOT
<h1> My Header</h1>
ii. iiii. Start and End:
Keep to the following construct:
<H1>My
Header</H1> or <P>hello</P1>
and NOT
<H2>hello
<P1>hello
again
<Top>
b. Form Tags
Keep to the
following construct:
<form method="post"
action="{SERVLET_PATH}">
<Top>
c. Stylesheets
i. Formatting
<Top>
d. Indentation
e. Field Types
<Top>
f. Date Format
Keep to the following construct:
<td
class="whitecell" width="433"><input
name="Owner_IDExpiryDate" size="10">{DATE_FORMAT}</td>
<Top>
g. Hard coding
<Top>
h. Scripts
<Top>
|