HTML Lang

Why put a lang attribute in html element

Accessibility

Why put a lang attribute in html element

Screen readers support a large number of languages, for each of which they have a library of sounds that allow the words to be pronounced correctly. If a web page indicates which language content should be read, screen readers are able to switch between the various libraries.

Otherwise, the screen reader thinks that the language of the page is the one chosen by the user when he sets it up.

 

How the SeoChecker missing <html> lang audit is displayed

If the <html> element of a page has no lang attribute, SeoChecker will notify it.

html lang

How can I add an HTML lang attribute?

Simply use a language code that is valid in the lang attribute of the <html> element.

For instance:

<html lang=”en”>

Share this Guide

Did you like it? Share it!

Share it!

Web tools for modern developers. Try these one!

Over 50 generators, builders and validators to improve your SEO and web performances

Home Back to top of the page