Skip to main content
HTML Validation

Consider adding a “lang” attribute to the “html” start tag to declare the language of this document.

About This HTML Issue

Always use a language attribute on the <html> tag to declare the default language of the text in the page, using the lang property.

Example:

<html lang="fr">

Last reviewed: October 27, 2022

Was this guide helpful?

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Ready to validate your sites?
Start your free trial today.