Best practice for meta data in a html document?

后端 未结 4 884
猫巷女王i
猫巷女王i 2020-12-24 00:10

I work on a large scale, high volume, public facing web application. The successful operation of the application is very important to the business, and so there are a number

4条回答
  •  孤独总比滥情好
    2020-12-24 00:57

    W3C validation is meaningless. HTML != XML, so there isn't any schema to validate it. No browser will choke because you added a meta element with an unregistered name. If you really are worried, you could use the data attribute on a meta element like:

    
    

    at least then you know no future spec will give meaning to your data.

    For more info read: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#custom-data-attribute

提交回复
热议问题