sunlei 发表于 2006 年 1 月 9 日 19:46:33

符合web标准的网站首页头内容

// DOCTYPE声明。DOCTYPE是document type(文档类型)的简写,用来说明你用的XHTML或者HTML是什么版本。<BR>//过渡的(Transitional),严格的(Strict),框架的(Frameset)<BR><SPAN style="COLOR: red">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1&#46;0 Transitional//EN" "<A href="http://www&#46;w3&#46;org/TR/xhtml1/DTD/xhtml1-transitional&#46;dtd" target=_blank>http://www&#46;w3&#46;org/TR/xhtml1/DTD/xhtml1-transitional&#46;dtd</A>"&gt;</SPAN><BR>//"xmlns"是XHTML namespace的缩写,叫做"名字空间"声明<BR><SPAN style="COLOR: red">&lt;html xmlns="<A href="http://www&#46;w3&#46;org/1999/xhtml" target=_blank>http://www&#46;w3&#46;org/1999/xhtml</A>" lang="gb2312"&gt; </SPAN><BR><SPAN style="COLOR: red">&lt;head&gt;</SPAN>//定义你的语言编码<BR><SPAN style="COLOR: red">&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;</SPAN>//head区调用样式<BR><SPAN style="COLOR: red">&lt;link rel="stylesheet" rev="stylesheet" href="css/style&#46;css" type="text/css" media="all" /&gt;</SPAN><BR>//收藏夹小图标,ico文件放在根目录<BR><SPAN style="COLOR: red">&lt;link rel="icon" href="/favicon&#46;ico" type="image/x-icon" /&gt;<BR>&lt;link rel="shortcut icon" href="/favicon&#46;ico" type="image/x-icon" /&gt;</SPAN><BR>//为搜索引擎准备的内容<BR><SPAN style="COLOR: red">&lt;meta content="all" name="robots" /&gt; </SPAN><BR>//允许搜索机器人搜索站内所有链接,CONTENT的参数有all,none,index,noindex,follow,nofollow。默认是all。<BR><BR><SPAN style="COLOR: red">&lt;meta name="author" content="zcyzcy@gmail&#46;com,<A href="http://www&#46;vxii&#46;com/blog" target=_blank>ad<A href="http://www&#46;vxii&#46;com/blog" target=_blank>rian</A></A>" /&gt;</SPAN> //设置站点作者信息<BR><SPAN style="COLOR: red">&lt;meta name="Copyright" content="<A href="http://www&#46;vxii&#46;com/blog" target=_blank>ad<A href="http://www&#46;vxii&#46;com/blog" target=_blank>rian</A></A>&#46;goofar&#46;com,自由版权,任意转载" /&gt;</SPAN> //设置站点版权信息<BR><SPAN style="COLOR: red">&lt;meta name="description" content="个人BLOG,日记,网页设计" /&gt; </SPAN>//站点的简要介绍(推荐)<BR><BR><SPAN style="COLOR: red">&lt;meta content="designing, with, web, standards, xhtml, css, graphic, design" name="keywords" /&gt;</SPAN> //站点的关键词(推荐)<BR><SPAN style="COLOR: red">&lt;title&gt;<A href="http://www&#46;vxii&#46;com/blog" target=_blank>ad<A href="http://www&#46;vxii&#46;com/blog" target=_blank>rian</A></A>'s blog&lt;/title&gt;<BR>&lt;/head&gt;<BR>&lt;body&gt;&lt;/body&gt;<BR>&lt;/html&gt;</SPAN>

Lnaliang 发表于 2006 年 1 月 9 日 20:22:09

不错 给初学者很有用

水牛 发表于 2006 年 1 月 9 日 21:16:36

谢谢

chris88 发表于 2006 年 1 月 10 日 11:37:16

路过, 看看,

支持一下

hjt 发表于 2006 年 1 月 10 日 12:06:34

wyow 发表于 2006 年 1 月 10 日 12:59:36

享受免费发布供求信息和产品信息,让更多的客户和采购商找到你!!




http://china.53trade.com

esnak 发表于 2006 年 1 月 10 日 14:11:35

抵制w3c

kkriven 发表于 2006 年 1 月 10 日 15:02:40

打开macromedia的首页 就是很好的 学习标准

mydo 发表于 2006 年 1 月 11 日 08:39:56

不错地说。。。

qlq 发表于 2006 年 1 月 14 日 15:17:00

抵制w3c...
页: [1] 2
查看完整版本: 符合web标准的网站首页头内容