web2.0标准如何建立标准化的声明(DOCTYPE)和head
2008-02-23 18:07
375 查看
[align=center]web2.0标准如何建立标准化的声明(DOCTYPE)和head[/align] <!--(1)过渡型(Transitional )--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--(2)严格型(Strict )--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!--(3)框架型(Frameset )--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 1,2,3从中选择一种,对于一般中国用户来讲,推荐大家使用1过渡型,因为它较2验证更为宽松一些 <!--设定一个名字空间(Namespace)lang="zh-CN"/--> <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"> <head> <!--声明你的编码语言:GB2312/UTF-8/Unicode/ISO-8859-1--> <meta http-equiv="Content-Type" content="text/html; charset=GB2312" /> <meta http-equiv="Content-Language" content="zh-CN" /> <!--为搜索引擎准备的内容--> <!--允许搜索机器人搜索站内所有链接。如果你想某些页面不被搜索,推荐采用robots.txt方法--> <meta content="all" name="robots" /> <!--设置站点作者信息--> <meta name="author" content="uto0733@sina.com,feelmy" /> <!--设置站点版权信息--> <meta name="Copyright" content="www.w3cn.org,自由版权,任意转载" /> <!--站点的简要介绍(推荐)--> <meta name="description" content="网页设计。web标准公布站点" /> <!--站点的关键词(推荐)--> <meta content="designing, with, web, xhtml, css, design, layout, w3c, w3, w3cn, feelmy" name="keywords" /> <!--收藏夹小图标--> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <title>网页标题</title> <!--连接样式表--> <link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" /> <style type="text/css" media="all">@import url( css/style01.css );</style> <!--RSS--> <link rel="alternate" type="application/rss+xml" title="pcpop俱乐部" href="http://www.pcpop.com/free.aspx" /> <!--JS--> <script src="http://www.pcpop.com/js/common.js" _fcksavedurl=""http://www.pcpop.com/js/common.js"" type="text/javascript" language="javascript" "></script> </head> <body></body> </html> |
相关文章推荐
- (WEB标准)建立标准化的声明(DOCTYPE)和head
- 建立标准化的声明DOCTYPE和head
- 建立标准化的声明DOCTYPE和head
- 如何用VS2010新建一个类?用来写C++文件的标准格式建立?就是能做到声把声明放在.H里,实现放在.CPP里的
- 如何建立标准的maven web 工程
- 【css】doctype声明、浏览器的标准、怪异等模式
- doctype声明、浏览器的标准、怪异等模式
- doctype声明、浏览器的标准、怪异等模式
- DOCTYPE 声明的作用是什么? 严格模式与混杂模式如何区分?
- HTML兼容性 不声明doctype,IE9标准模式下position:fixed定位失败,导致遮罩层(Mask Layer)显示在页面最下方,FF和Chrome正常
- doctype声明、浏览器的标准、怪异等模式
- 应该如何理解Web2.0标准
- WEB2.0标准教程:head区的其他设置
- 如何快速、高效的建立页面的Head代码部分
- doctype声明、浏览器的标准、怪异等模式
- Doctype文档声明的严格模式和混杂模式,如何触发这两种模式,区分它们有何意义?
- doctype声明、浏览器的标准、怪异等模式
- doctype声明、浏览器的标准、怪异等模式
- DOCTYPE声明、显示模式(标准模式、怪异模式)、盒子模型
- 为页面添加正确的doctype声明-W3C标准