美文网首页
HTTP header和HTML meta的关系

HTTP header和HTML meta的关系

作者: jack2gs | 来源:发表于2016-12-13 16:50 被阅读0次

META标签可分为两大部分:HTTP-EQUIV和NAME属性。HTTP-EQUIV用于向浏览器提供一些说明信息,从而可以根据这些说明做出反应。常用的HTTP-EQUIV类型还包括:网页到期时间、默认的脚本语言、默认的风格页语言、网页自动刷新时间等。NAME属性主要用于描述网页,以便于搜索引擎机器人查找,分类。

When the http-equiv attribute is specified on a meta element, the element is a pragma directive. You can use this element to simulate an HTTP response header, but only if the server doesn't send the corresponding real header; you can't override an HTTP header with a meta http-equiv element.

以上摘自维基百科

相关文章

网友评论

      本文标题:HTTP header和HTML meta的关系

      本文链接:https://www.haomeiwen.com/subject/jurbmttx.html