W3C validator: “Bad value robots for attribute name on element meta”

南楼画角 提交于 2019-12-08 03:08:28

问题


What has changed with <meta name="robots" content="index,follow"> meta tag? I use HTML5 and W3C validator marks my page as invalid. There is robots meta name allowed in http://wiki.whatwg.org/wiki/MetaExtensions.

Exact validator error:

Bad value robots for attribute name on element meta: Keyword robots is not registered.


回答1:


The validator is wrong.

The robots name is registered according to HTML5’s rules, so you can use it.

You’ll probably see the same problem with all other registered names, too (e.g., with the google name).



来源:https://stackoverflow.com/questions/22100619/w3c-validator-bad-value-robots-for-attribute-name-on-element-meta

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