加入收藏 | 设为首页 | 会员中心 | 我要投稿 宁德站长网 (https://www.0593zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

html页面head区域的编码书写规范

发布时间:2016-12-07 20:31:09 所属栏目:百科 来源:站长网
导读:今天我们简单的介绍一下head区域主要放置了内容。这里就不强调css和javascript了,这两者是大家所熟知的。 head区一般必须加入的标识有:nbsp; 公司版权注释 lt;!---nbsp;thenbsp;sitenbsp;isnbsp;designednbsp;bynbsp;MrJinnbsp;03/2001nbsp;---gt;nbsp;nb
今天我们简单的介绍一下head区域主要放置了内容。这里就不强调css和javascript了,这两者是大家所熟知的。


head区一般必须加入的标识有:nbsp;


公司版权注释
lt;!---nbsp;thenbsp;sitenbsp;isnbsp;designednbsp;bynbsp;MrJinnbsp;03/2001nbsp;---gt;nbsp;nbsp;

网页显示字符集
简体中文:
lt;metanbsp;http-equiv="content-type"nbsp;content="text/html;nbsp;charset=gb2312"gt;
繁体中文:
lt;metanbsp;http-equiv="content-type"nbsp;content="text/html;nbsp;charset=big5"gt;
英nbsp;语:
lt;metanbsp;http-equiv="content-type"nbsp;content="text/html;nbsp;charset=iso-8859-1"gt;
或者:
lt;metanbsp;http-equiv="content-type"nbsp;content="text/html;nbsp;charset=utf-8"gt;

原始制作者信息
lt;metanbsp;name="author"nbsp;content="52css@jb51.net"gt;nbsp;

网站简介
lt;metanbsp;name="description"nbsp;content="这里填您网站的简介"gt;nbsp;

搜索关键字
lt;metanbsp;name="keywords"nbsp;content="关键字1,关键字2,关键字3,..."gt;nbsp;nbsp;

网页的css规范
lt;linknbsp;href="style/style.css"nbsp;rel="stylesheet"nbsp;type="text/css"gt;nbsp;

网页标题
lt;titlegt;这里是你的网页标题lt;/titlegt;nbsp;

head区可选加入的标识有:nbsp;

设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。
lt;metanbsp;http-equiv="expires"nbsp;content="wed,nbsp;26nbsp;febnbsp;1997nbsp;08:21:57nbsp;gmt"gt;nbsp;

禁止浏览器从本地机的缓存中调阅页面内容。
lt;metanbsp;http-equiv="pragma"nbsp;content="no-cache"gt;nbsp;nbsp;

用来防止别人在框架里调用你的页面。
lt;metanbsp;http-equiv="window-target"nbsp;content="_top"gt;nbsp;

自动跳转(5指时间停留5秒)。
lt;metanbsp;http-equiv="refresh"nbsp;content="5;url=www.jb51.net"gt;

网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。
lt;metanbsp;name="robots"nbsp;content="none"gt;
content的参数有all,none,index,noindex,follow,nofollow。默认是all。nbsp;

收藏夹图标
lt;linknbsp;relnbsp;=nbsp;"shortcutnbsp;icon"nbsp;href="favicon.ico"gt;nbsp;

如果您还有什么知识需要补充,欢迎在jb51.net发表评论。

(编辑:宁德站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!