当前位置: 移动技术网 > IT编程>网页制作>CSS > Meta标签大全

Meta标签大全

2019年03月01日  | 移动技术网IT编程  | 我要评论

http-equiv

 

l  设定页面使用的字符集

<meta http-equiv="content-type" content="text/html; charset=utf-8"> 

 

l  ie8浏览器去模拟特定版本的ie浏览器的渲染方式,以此来解决部分兼容问题。

<meta http-equiv="x-ua-compatible" content="ie=7">  
<meta http-equiv="x-ua-compatible" content="ie=8">  
<meta http-equiv="x-ua-compatible" content="ie=edge">  
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1">

l 设定网页的过期时间
<meta http-equiv="expires"content="fri,12jan200118:18:18gmt">
 

l  自动刷新并指向新页面 

<meta http-equiv="refresh" content="2;url=https://www.baidu.com">

 

l  如果网页过期,那么自动删除本地cookie

<meta http-equiv="set-cookie"content="cookie value=xxx;expires=friday,12-jan-200118:18:18gmt;path=/">

 

l  强制页面在当前窗口中以独立页面显示,可以防止自己的网页被别人当作一个frame页调用

<meta http-equiv="window-target" content="_top">
 

l  缓存机制

<meta http-equiv="cache-control" content="no-cache">

 

name

l  标注网页的作者

<meta name="author" content="dashen" />

 

l  页面关键词,用于被搜索引擎收录

<meta name="keywords" content="新闻,新闻中心, 新闻频道">

 

l  页面描述,用于搜索引擎收录

<meta name="description" content="新闻中心,包含有时政新闻、新闻专题、新闻论坛、军事、历史、的专业时事报道门户网站">

 

l  用于控制页面缩放

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">

 

l  指定双核浏览器默认以何种方式渲染页面

<meta name="renderer" content="webkit">//默认webkit内核
<meta name="renderer" content="ie-comp">//默认ie兼容模式
<meta name="renderer" content="ie-stand">//默认ie标准模式

 

l  说明网站的采用的什么软件制作

<meta name="generator" content="microsoft"/>

 

l  网页文档的修改时间

<meta name="revised" content="设计网, 6/24/2015"/>

 

l  用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引

<meta name="robots" content="none"/>

 

l  网站版权信息

<meta name="copyright" content="本页版权xxx所有。all rights reserved" />

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网