Técnico

HTML lang attribute

Checks if the lang attribute is present on the <html> element.

¿Por qué importa esto?

The lang attribute helps search engines recognize the language of your content and shows your page to users searching in that language. Screen readers also use it to determine the correct pronunciation.

¿Cómo se soluciona?

Add the lang attribute to the <html> element: <html lang="en">. Use BCP 47 language tags. For regional variants use the format "nl-NL" or "en-US".

Este check puntúa de 0 a 100. Bajo 50 es un fallo, 50 a 89 un aviso, 90 o más es bueno. Tras cada crawl ve la nota por página en el informe, con una breve explicación.

Preguntas frecuentes

Checks if the lang attribute is present on the <html> element.

The lang attribute helps search engines recognize the language of your content and shows your page to users searching in that language. Screen readers also use it to determine the correct pronunciation.

Add the lang attribute to the <html> element: <html lang="en">. Use BCP 47 language tags. For regional variants use the format "nl-NL" or "en-US".

Ejemplo

Copie el código de abajo y adapte el dominio, la marca y el contenido a su situación.

<html lang="en"> or <html lang="en-US">
Empezar gratis