HTML Standards

by Pete Su

ACS Documentation : ACS Engineering Standards : HTML


The Big Picture

A typical HTML document in ACS is a static page containing documentation. But, a lot of HTML also shows up in our dynamic pages and in code that we write that generates presentation. As a general rule, we should follow the standards below so that we know they are made up of reasonably well formed HTML. Note that this document is indepedent from, and orthogonal to any style guidelines that might exist at some site where the documentation is installed.

The 80 Column Rule

Make sure that your HTML file will be easily editable in most text editors (i.e. emacs). This means that text should be wrapped at 78 to 80 columns with explicit line feeds or CRLF pairs. Many WSYWIG HTML editors do not do this. Be careful.

General file format

Files should look like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">

<head>
<title>HTML Standards</title>
</head>

<body bgcolor=white>

<h2>HTML Standards</h2>

by <a href="mailto:me@arsdigita.com">Author Name</a>

<p>

<hr>

<h3>The Big Picture</h3>

<p>
...
</p>


<p></p>
<hr>
<p></p>
<address><a href="me@arsdigita.com">Author Name</a></address>

Last Modified: $Id$

</body>
</html>

</pre>
</blockquote>

Some things to note:

Tag Properties

All tag properties should be correctly delimited strings. For example:

<a href="http://server.somewhere.com/some/path/in/server.html">
This is a URL
</a>

The quotes are important, don't leave them out.

Links

URLs show up a lot in our code and in our static content. Here are rules about how to use them:

Tables

Format tables like this:
<table>
<tr>
<th>
heading 1
</th>
...
<th>
heading N
</th>
</tr>
<tr>
<td>
cell 1
</td>
...
<td>
cell N
</td>
</tr>
</table>

This table will look like this:

heading 1 ... heading N
cell 1 ... cell N

Feel free to add style parameters to suit your taste.

If you want, you can indent the various table tags. It is particularly important that you close all table tags because weird things can happen with malformed tables in various browsers, especially Netscape.

Other General Comments


Pete Su
Last Modified: html-standards.html,v 1.1 2001/01/21 01:49:07 bquinn Exp