I'm getting this error when I validate my HTML using the W3C validator:
Bad value language for attribute name on element meta: Keyword language is not registered.
<meta name="language" content="en" />
How can I solve this?
I'm getting this error when I validate my HTML using the W3C validator:
Bad value language for attribute name on element meta: Keyword language is not registered.
<meta name="language" content="en" />
How can I solve this?
You should specify the language on the HTML tag, like so:
<html lang="en">
You can also ues the lang
attribute on any element, so if you have just one div with French in it, you could do:
<html lang="en">
...
<body>
...
<div lang="fr"></div>
...
</body>
</html>
I think you're looking for content-language
<meta http-equiv="Content-Language" content="en" />
<html lang="en">
as already replied by several other persons. –
Platen Bad value Content-Language for attribute name on element meta: Keyword content-language is not registered.
The Content-Language value for an http-equiv attribute on a meta element should no longer be used. You should use a language attribute on the html tag to declare the default language of the actual text in the page. –
Hurlburt © 2022 - 2024 — McMap. All rights reserved.
language
as a value for thename
attribute on themeta
tag. – Dercy