HTML 规范

样式

<style type="text/css">

p { text-indent: 2em; }
body { font-family: " 宋体 "; font-size: 9pt; color: 
#000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; 
margin-left: 0px}
table { font-family: " 宋体 "; font-size: 9pt; line-height: 
20px; color: #000000}

a:link { font-size: 9pt; color: #FFFFFF; text-decoration: none}
a:visited { font-size: 9pt; color: #99FFFF; text-decoration: none}
a:hover { font-size: 9pt; color: #FF9900; text-decoration: none}
a:active { font-size: 9pt; color: #FF9900; text-decoration: none}
a.1:link { font-size: 9pt; color: #3366cc; text-decoration: none}
a.1:visited { font-size: 9pt; color: #3366cc; text-decoration: none}

a.1:hover { font-size: 9pt; color: #FF9900; text-decoration: none}
a.1:active { font-size: 9pt; color: #FF9922; text-decoration: none}
.blue { font-family: " 宋体 "; font-size: 10.5pt; 
line-height: 20px; color: #0099FF; letter-spacing: 5em}
-->
</style>

字号

为了保证不同浏览器上字号保持一致,字号建议用点数 pt 和像素 px 来定义

pt 一般使用中文宋体的 9pt 和 11pt , 
px 一般使用中文宋体的 12px 和 14.7px ,
黑体字或者宋体字加粗时,一般选用 11pt 和 14.7px 的字号比较合适。

表格

对于单独的一个 <table> 来说, <table><tr> 对齐, <td> 缩进两个半角空格, 
<td> 中如果还有嵌套的表格, <table> 也缩进两个半角空格,
如果 <td> 中没有任何嵌套的表格, </td> 结束标记应该与 <td> 处于同一行,不要换行
不应存在空的单元格,至少得有一个空格 &nbsp;

列宽和行高写入第一行或第一列的 <TD> 标签中,如果只有一个,则写入 <TABLE> 中。

段落

首行缩进用样式 p { text-indent:2em } ,不要省略 </P> 标记。

尽量不要使用 <BR> 分段,而插入半角空格使浏览器自动分段。

不同语种之间用半角空格隔开。

尽量不用 <FONT> 标签,而在样式中规定字号。

尽量不用连续的 &nbsp; 和全角空格,改用 text-indent, padding, margin, hspace, vspace 以及透明的 gif 图片来实现

中英文混排时的英文字体建议是 verdana 和 arial。

行距建议用百分比来定义,如 line-height:120% / 150%

图像

尽量不规定 WIDTH 和 HEIGHT 值,除非加载图象时引起的网页刷新太厉害

链接

尽量使用相对路径,如果是默认页,则省略文件名

总体

每个目录提供统一的默认页,如 INDEX.HTM。

文件名统一用小写字母。