Skip to main content

HTML Guide

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

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">

Learn more:

Related W3C validator issues