ACS Documentation : ACS Engineering Standards : HTML
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.
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.
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:
<p>, doing
this right will save your butt some day.
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.
URLs show up a lot in our code and in our static content. Here are rules about how to use them:
index.tcl,
index.adp, index.html, etc.). Instead, use
just the directory name, for both relative links
(subdir/) and absolute links
(/top-level-dir/). If linking to the directory in which
the page is located, use the empty string (""), which
browsers will resolve correctly.
<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.