How can I avoid the error "Error defining name attribute for meta element"?

I get this error when I test 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?

+5
source share
3 answers

Using

<html lang="en">

Source

+14
source

You must specify the language in the HTML tag, for example:

<html lang="en">

You can also use the attribute langfor any element, so if it has only one div with French, you can do:

<html lang="en">
    ...
    <body>
        ...
        <div lang="fr"></div>
        ...
    </body>
</html>
+3
source

, -

<meta http-equiv="Content-Language" content="en" />
0
source

All Articles