html页面head区域的编码书写规范
2009-07-15 12:12
417 查看
我们这里所说的head区域,是指页页html代码的<head>和</head>之间的内容。在本文中,主要介绍了大量的css知识,而对html页面的知识介绍并不是很多。
今天我们简单的介绍一下head区域主要放置了内容。这里就不强调css和javascript了,这两者是大家所熟知的。
head区一般必须加入的标识有:
公司版权注释
<!--- the site is designed by MrJin 03/2001 --->
网页显示字符集
简体中文:
<meta http-equiv="content-type" content="text/html; charset=gb2312">
繁体中文:
<meta http-equiv="content-type" content="text/html; charset=big5">
英 语:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
或者:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
原始制作者信息
<meta name="author" content="52css@jb51.net">
网站简介
<meta name="description" content="这里填您网站的简介">
搜索关键字
<meta name="keywords" content="关键字1,关键字2,关键字3,...">
网页的css规范
<link href="style/style.css" rel="stylesheet" type="text/css">
网页标题
<title>这里是你的网页标题</title>
head区可选加入的标识有:
设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。
<meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">
禁止浏览器从本地机的缓存中调阅页面内容。
<meta http-equiv="pragma" content="no-cache">
用来防止别人在框架里调用你的页面。
<meta http-equiv="window-target" content="_top">
自动跳转(5指时间停留5秒)。
<meta http-equiv="refresh" content="5;url=aofei.net.cn">
网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。
<meta name="robots" content="none">
content的参数有all,none,index,noindex,follow,nofollow。默认是all。
收藏夹图标
<link rel = "shortcut icon" href="favicon.ico">
如果您还有什么知识需要补充,欢迎在本站留言。
今天我们简单的介绍一下head区域主要放置了内容。这里就不强调css和javascript了,这两者是大家所熟知的。
head区一般必须加入的标识有:
公司版权注释
<!--- the site is designed by MrJin 03/2001 --->
网页显示字符集
简体中文:
<meta http-equiv="content-type" content="text/html; charset=gb2312">
繁体中文:
<meta http-equiv="content-type" content="text/html; charset=big5">
英 语:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
或者:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
原始制作者信息
<meta name="author" content="52css@jb51.net">
网站简介
<meta name="description" content="这里填您网站的简介">
搜索关键字
<meta name="keywords" content="关键字1,关键字2,关键字3,...">
网页的css规范
<link href="style/style.css" rel="stylesheet" type="text/css">
网页标题
<title>这里是你的网页标题</title>
head区可选加入的标识有:
设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。
<meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">
禁止浏览器从本地机的缓存中调阅页面内容。
<meta http-equiv="pragma" content="no-cache">
用来防止别人在框架里调用你的页面。
<meta http-equiv="window-target" content="_top">
自动跳转(5指时间停留5秒)。
<meta http-equiv="refresh" content="5;url=aofei.net.cn">
网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。
<meta name="robots" content="none">
content的参数有all,none,index,noindex,follow,nofollow。默认是all。
收藏夹图标
<link rel = "shortcut icon" href="favicon.ico">
如果您还有什么知识需要补充,欢迎在本站留言。
相关文章推荐
- html页面head区域的编码书写规范
- html页面head区域的编码书写规范
- html页面head区域的编码书写规范
- html页面head区域的编码书写规范
- [html]head区域编写规范
- Html网页页面head区规范知识
- Html网页页面head区规范知识
- Html网页页面head区规范知识
- 大家比较忽略的知识:Html网页页面head区规范知识
- Html网页页面head区规范知识
- Html网页页面head区规范知识
- Web前端——Head区域代码规范
- HTML页面是否符合规范在线验证
- 百度,淘宝,腾讯三大巨头HTML页面规范分解
- 前端编码风格规范之 HTML 规范
- Head First HTML & CSS chapter 4 ,5 :连接起来,为你的页面加图像
- HTML 编码规范
- yii基于布局的子页面引入js和css文件,并放入布局文件中HTML的head中
- 制作Html页面规范的十大注意事项
- HTML编码规范