爱子日志

W3C标准(XHTML1.0校验)需注意

1、所有元素和属性名要小写。

2、属性值必须用双引号括起。

3、属性必须有值。

4、标签"p"只能在 applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th 中使用。

5、标签"li"只能在 dir, menu, ol, ul 中使用。

6、使用等式实体

& 转换为 &
< 转换为 &lt;
> 转换为 &gt;
"  转换为 &quot;
空格 转换为 &nbsp;
版权符© 转换为 &copy;
注册符® 转换为 &reg;

7、闭合字符要使用 />

8、图片必须加上alt=""标签

9、script必须加type="text/javascript"

http://www.slyar.com/blog/w3c-xhtml-attention.html

聚划算