html validation error for html lang attribute

Mixturethemes picture Mixturethemes · Oct 24, 2016 · Viewed 7.8k times · Source

I am getting this error message:

This document appears to be Lorem ipsum text but the html start tag has lang="en". Consider using lang="zxx" (or variant) instead.

From line 5, column 32; to line 5, column 47

html lang="en"

For further guidance, consult Tagging text with no language, Declaring the overall language of a page and Choosing language tags.

If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.

for html lang = "en" attribute

What should I do right now ?

Answer

Shaz picture Shaz · Oct 25, 2016

You're using lorem ipsum, which isn't English. Changing the language attribute to zxx should fix the validation warning. zxx is used when the language is unknown.

Your options:

  1. Change en to zxx --- html lang="zxx"
  2. Replace lorem ipsum with English dummy text and keep en
  3. Ignore the warning until you update your page with real content

https://github.com/validator/validator/issues/321