当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > html页面head区域的编码书写规范

CSS样式表
CSS网页设计 IE8和IE7共存
CSS2 打印属性让打印HTML文档不出问题
制作网页中设计段落缩进的方法
CSS border 属性使用说明
CSS border-style 属性使用方法
CSS border-color 属性使用方法
CSS border-width 属性使用教程
CSS padding属性定义边内补白
CSS margin 属性定义边外补白
网页布局教程 掌握CSS网页布局属性
css 背景样式属性说明
span margin 设置生效
html 滚动条在IE6和IE7中兼容性问题
IE6 两个div有间隙的问题(IE 3px bug)
CSS 数字和字母将容器撑大问题解决
换个角度看页面重构中的语义化
DIY属于个人开发使用的CSS Reset
CSS 空格引起网页布局间距问题
CSS 网页制作时遇到问题的快速参考技巧
css li 去掉点的样式写法

CSS样式表 中的 html页面head区域的编码书写规范


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-12   浏览: 106 ::
收藏到网摘: n/a

我们这里所说的head区域,是指页页html代码的<head>和</head>之间的内容。在ruanchen.com的文章中,主要介绍了大量的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="[email protected]">
网站简介
<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=www.ruanchen.com">
网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。
<meta name="robots" content="none">
content的参数有all,none,index,noindex,follow,nofollow。默认是all。
收藏夹图标
<link rel = "shortcut icon" href="favicon.ico">
如果您还有什么知识需要补充,欢迎在ruanchen.com发表评论。