Home  >  Article  >  Web Front-end  >  html Meta tag small set_HTML/Xhtml_web page production

html Meta tag small set_HTML/Xhtml_web page production

WBOY
WBOYOriginal
2016-05-16 16:41:281109browse

... represents the file header of , which is used to describe the file name and related information about the file itself. Usually this part of the tag declares this web page: default language encoding, keywords, software used, etc.

The Meta tag can be divided into two parts, HTTP header information (HTTP-EQUIV) and page description information (NAME). The following table describes the HTTP header information.

Table 1 HTTP header information (HTTP-EQUIV) table

content-type 显示字符集
refresh 让页面指定时间刷新自己,或者跳转
expires 指定网页缓存的过期时间
cach 是否允许浏览器从本地机器调阅缓存
set-cookie 是否禁用cookie或者使cookie失效
window-target 强制页面的显示方式 强制页面在当前窗口中以独立页面显示,也可以用来防止别人在框架里调用该页面。其中content的选项为_blank,_top,_self,_parent。
page-enter,page-exit 页面的进入与退出的特效设置 这实际上是利用到了CSS滤镜。

Meta’s page description information (NAME) is used to illustrate and describe the web page. Name describes the web page and corresponds to the content, so that search robots can find and classify it. The value of name (name="") specifies the type of information provided, some of which are

Values ​​are already defined, such as description, keyword, refresh, etc. You can also specify other arbitrary values, such as creationdate, documentID, Level, etc. The following table is the specific syntax:

Table 2 HTTP description information table

keywords 声明网页的关键字,又搜索引擎自动完成关键字索引。
Description 描述网站的主要内容,搜索殷勤也会通过这个属性来检索这个网站,但是不显示出来。
Robots 机器人向导,用来告诉机器人那些页面需要索引,那些不需要索引。
all:文件将被索引。None文件不被索引,且页面上的链接不可以被查询。(和"NoIndex,NoFollow"起相同作用).Index:文件将被检索。Follow:页面上的链接可以被查询。
Author 页面作者
Copyright 用于标注版权
Generator 编辑器  
revisit-after 设定重新访问的时间间隔,以天为单位。(我还不是很清楚该标签作用)
     

Meta also has some other tags, which are also organized in a unified manner, see the table below:

Table 3 Meta other tag table

scheme 说明内容的一个含义标签
link 链接到某个文件 放入收藏夹中后显示的小图标,地址栏上的小图标
base 基链接 使用该语句后,网页上所有相对路径在链接时都会自动加上前面的地址。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn