Combining the meta description and Open Graph Protocol description into one tag

后端 未结 2 623
情话喂你
情话喂你 2021-02-02 06:35

Is it possible to combine the meta description and Open Graph Protocol description…


<         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 07:15

    Some additional info on why this is possible/allowed:

    HTML+RDFa 1.1 extends HTML5’s meta element.

    HTML+RDFa 1.1 (W3C Recommendation) defines:

    If the RDFa @property attribute is present on the meta element, neither the @name, @http-equiv, nor @charset attributes are required and the @content attribute MUST be specified.

    So when using RDFa's @property the name is not required but it is not forbidden either, making

    
    

    perfectly ok according to spec.

    I found this from the answer to this related question: Is it possible to use the same meta tag for opengraph and schema.org

提交回复
热议问题