哪些是标准的W3C元标签? [英] Which are the standard W3C meta tags?

查看:127
本文介绍了哪些是标准的W3C元标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在W3C中定义的标准元标记列表除 http://www.w3.org/wiki/HTML/Elements/meta

 < meta http-equiv =Content-Typecontent =text / html; charset = utf-8/> 
< meta http-equiv =Content-Style-Typecontent =text / css/>
< meta name =copyrightcontent =©W3C/>
< meta name =authorlang =encontent =/>
< meta name =robotscontent =Index,Follow/>
< meta name =description
content =万维网联盟(W3C)是一个国际社区
,其中会员组织,全职员工,
和大众共同合作开发Web标准。 />


解决方案

HTML5



您只能在HTML5中使用以下值。如果您需要一个未列出的值,您必须先注册。



name





http-equiv





HTML 4.01



在HTML 4.01中没有定义注册表,所以你可以使用你喜欢的任何值。请参阅 http://www.w3.org/TR/html401/struct/global .html#h-7.4.4


本规范未定义一组合法的元数据属性。 p>

该规范给出了 name 值的一些示例,如:




  • 作者

  • 关键字

  • 说明
  • copyright

  • date

  • ROBOTS



对于 http-equiv


  • 过期

  • PICS-Label

  • Content-Type
  • / ul>

    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" />
    

    解决方案

    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

    http-equiv values

    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

    这篇关于哪些是标准的W3C元标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆