网页head区常用代码

公司版权注释
<!--- the site is designed by jackiezy 08/2008 --->

网页显示字符集
简体中文:
<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="myblog.com " />

网站简介, 亦可用CMS标签动态描述
<meta name="description" content="这里填您网站的简介" />

搜索关键字
<meta name="keywords" content="关键字1,关键字2,关键字3,..." />

网页的css规范
<link href="style/style.css" rel="stylesheet" type="text/css" />

网页标题
<title>My Blog</title>

二、head区可选加入的标识有:

设定网页的到期时间 。一旦网页过期,必须到服务器上重新调阅。
<meta http-equiv="expires" content="21 Aug 2008 08:21:57 gmt+8" />

禁止浏览器从本地机的缓存中调阅页面内容 。
<meta http-equiv="pragma" content="no-cache" />

用来防止别人在框架里调用你的页面 。
<meta http-equiv="window-target" content="_top" />

自动跳转(5指时间停留5秒) 。
<meta http-equiv="refresh" content="5;url=www.***.com" />

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

收藏夹图标
<link rel = "shortcut icon" href="favicon.ico" />
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值