W3C validator: “Bad value robots for attribute nam

2019-05-18 15:17发布

问题:

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).