---
title: "meta标签布置网站页面SEO优化教程详解"
url: "https://www.seosiguan.com/post/300.html"
id: "https://www.seosiguan.com/post/300.html"
language: "zh-Hans"
---

meta标签是网站页面HTML标准常用的标签，在SEO优化层面可以起到很好的注明和引导作用，也是网站支持浏览器和用户体验不可缺少的元素标签。

**一，meta标签常用的HTTP-EQUIV类型：**

Set-Cookie(cookie设定)

说明：如果网页过期，存盘的cookie将会被删除(必须是GMT的时间格式)

<meta&nbsp;http-equiv="Set-Cookie"&nbsp;content="cookievalue=xxx;expires=Wednesday,21-Oct-98&nbsp;16:14:21&nbsp;GMT;path=/">

&nbsp;Window-target(显示窗口的设定)

说明：强制页面在当前窗口以独立页面显示----用来防止别人在框架里面调用你的页面

<meta&nbsp;http-equiv="Window-target"&nbsp;content="_top">

&nbsp;Content-Type(显示字符集的设定)

说明：设定页面使用的字符集

<meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;charset=utf-8">

&nbsp;expires(期限)

说明：用于设定网页的到期时间，一旦网页过期，必须到服务器上重新调阅(必须使用GMT的时间格式)

<meta&nbsp;http-equiv="expires"&nbsp;content="Wed,&nbsp;26&nbsp;Feb&nbsp;2016&nbsp;08:21:57GMT">

&nbsp;Pragma(cache模式)

说明：禁止浏览器从本地机的缓存中调阅页面内容(访问者无法脱机浏览)

<meta&nbsp;http-equiv="Pragma"&nbsp;content="no-cache">

&nbsp;Refresh(刷新)

说明：需要让页面定时链接到其他页面的话，就用这句(停留五秒后自动跳转到URL地址)html中的meta信息里可以直接设置跳转，可以设置跳转延迟时间和跳转url，经常应用，比如支付完了告诉用户支付成功并跳转到订单页面。下面的列子表示：5秒钟后页面会自动跳转到https://www.seosiguan.com。

<meta&nbsp;http-equiv="refresh"&nbsp;content="5;url=www.myqing.cns">

**二，meta标签name变量语法**

keywords(关键字)---已经过时

说明：用来告诉搜索引擎 你网页的关键字是什么

<meta&nbsp;name="keywords"&nbsp;content="xxx">

&nbsp;description(简介)------(import)

说明：用来告诉搜索引擎你网站的主要内容

<meta&nbsp;name="description"&nbsp;content="xxx">

&nbsp;robots(机器人向导)------(import)

说明：robots用来告诉搜索机器人 哪些页面需要索引 哪些不需要 ;用来阻止搜索引擎获取拷贝页面、私密页面和未完成的页面.content参数有：all,none,index,noindex,follow,nofollow.默认all　

<meta&nbsp;name="robots"&nbsp;content="none">

其中：

all：文件将被检索，且页面上的链接可以被查询；

none：文件将不被检索，且页面上的链接不可以被查询；

index：文件将被检索；

follow：页面上的链接可以被查询；

noindex：文件将不被检索；

nofollow：页面上的链接不可以被查询。

author：标注网页的作者

<meta&nbsp;name="author"&nbsp;content="huangqingmei">

&nbsp;notranslate----(important)

说明：有时，Google在结果页面会提供一个翻译链接，但有时候你不希望出现这个链接

<meta&nbsp;name=”google”content=”notranslate”&nbsp;/>

**三，meta标签以下是一些不常用的例子和简要的说明**

<meta&nbsp;name="viewport"&nbsp;content="width=device-width,&nbsp;initial-scale=1"&nbsp;/>

&nbsp;viewport属性说明：

width:可视区域的宽度，值可为数字或关键词device-width

height同width

intial-scale:页面首次被显示时可视区域的缩放级别，取值1.0则页面按实际尺寸显示，无任何缩放

maximum-scale=1.0, minimum-scale=1.0;可视区域的缩放级别，

maximum-scale用户可将页面放大的程序，1.0将禁止用户放大到实际尺寸之上。

user-scalable:是否可对页面进行缩放，no 禁止缩放

<meta&nbsp;name="googlebot"&nbsp;content="index,follow"&nbsp;/><meta&nbsp;name="verify"&nbsp;content="index,follow"&nbsp;/><meta&nbsp;http-equiv="X-UA-Compatible"&nbsp;content="IE=edge"&nbsp;/><meta&nbsp;name="google"&nbsp;content="index,follow"&nbsp;/>

&nbsp;启用WebAPP全屏模式

<meta&nbsp;name="apple-mobile-web-app-capable"&nbsp;content="yes"&nbsp;/>

&nbsp;隐藏状态栏/设置状态栏颜色：只有在开启WebApp全屏模式时才生效。content的值为default | black | black-translucent 。

<meta&nbsp;name="apple-mobile-web-app-status-bar-style"&nbsp;content="black-translucent"&nbsp;/>

&nbsp;添加到主屏后的标题

<meta&nbsp;name="apple-mobile-web-app-title"&nbsp;content="标题">

&nbsp;忽略数字自动识别为电话号码

<meta&nbsp;content="telephone=no"&nbsp;name="format-detection"&nbsp;/>

忽略识别邮箱

<meta&nbsp;content="email=no"&nbsp;name="format-detection"&nbsp;/>

针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓

<meta&nbsp;name="HandheldFriendly"&nbsp;content="true">

微软的老式浏览器

<meta&nbsp;name="MobileOptimized"&nbsp;content="320">

uc强制竖屏

<meta&nbsp;name="screen-orientation"&nbsp;content="portrait">

QQ强制竖屏

<meta&nbsp;name="x5-orientation"&nbsp;content="portrait">

UC强制全屏

<meta&nbsp;name="full-screen"&nbsp;content="yes">

QQ强制全屏

<meta&nbsp;name="x5-fullscreen"&nbsp;content="true">

UC应用模式

<meta&nbsp;name="browsermode"&nbsp;content="application">

QQ应用模式

<meta&nbsp;name="x5-page-mode"&nbsp;content="app">

windows phone 点击无高光

<meta&nbsp;name="msapplication-tap-highlight"&nbsp;content="no">

**四，meta标签其他实例**

在html页面上设置不缓存

<meta&nbsp;http-equiv="pragma"&nbsp;content="no-cache"><meta&nbsp;http-equiv="cache-control"&nbsp;content="no-cache"><meta&nbsp;http-equiv="expires"&nbsp;content="0">

网站页面大部分需要布置都离不开meta标签，比如搜索引擎的网站验证、页面端识别等其他，网站前端SEO优化有一半需要用到meta标签，其中浏览器兼容也是SEO的一部分，所以有必要熟悉meta标签的使用范围和方法。