Which are the standard W3C meta tags?

被刻印的时光 ゝ 提交于 2019-11-26 02:58:55

问题


What are the list of standard meta tags defined in W3C other than the below given at http://www.w3.org/wiki/HTML/Elements/meta

  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
  <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />
  <meta name=\"copyright\" content=\"© W3C\" />
  <meta name=\"author\" lang=\"en\" content=\"\" />
  <meta name=\"robots\" content=\"Index,Follow\" />
  <meta name=\"description\"
        content=\"The World Wide Web Consortium (W3C) is an international community
        where Member organizations, a full-time staff,
        and the public work together to develop Web standards.\" />
  <meta name=\"keyword\" content=\"W3C, HTML, CSS, SVG, Web standards\" />

回答1:


HTML5

You can only use the following values in HTML5. If you need a value not listed, you’d have to register it first.

name values

  • Standard metadata names (defined in the HTML5 spec)
  • MetaExtensions (registered in the WHATWG wiki according to the HTML5 spec)

http-equiv values

  • Pragma directives (defined in the HTML5 spec)
  • PragmaExtensions (registered in the WHATWG wiki according to the HTML5 spec)

HTML 4.01

In HTML 4.01 there is no registry defined, so you can use whatever values you like. See http://www.w3.org/TR/html401/struct/global.html#h-7.4.4:

This specification does not define a set of legal meta data properties.

The spec gives some examples for name values, like:

  • author
  • keywords
  • description
  • copyright
  • date
  • ROBOTS

And for http-equiv values, like:

  • Expires
  • PICS-Label
  • Content-Type


来源:https://stackoverflow.com/questions/16171686/which-are-the-standard-w3c-meta-tags

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!