Saltar al contenido

Set the HTML language

Unos 5 min

lang on <html> tells browsers and crawlers the language of the page. Follow the steps below on your stack, then re-check the live URL.

lang on <html> tells browsers and crawlers the language of the page.

Lo recordamos en este navegador para que la siguiente guía use el mismo CMS.

At a glance

Time~5 min
CategorySEO
Steps2
StacksWordPress, Shopify, Webflow, Next.js, HTML, more

Pasos

  1. Set lang on the <html> element to match the visible text (en, de, es, …).

  2. Use a region variant only when you mean it (en-GB, pt-BR).

En HTML / static

Add lang="en" (or de, es, …) on the <html> element.

Snippet
<html lang="en">

FAQ

What does “Set the HTML language” fix?
lang on <html> tells browsers and crawlers the language of the page.
How long does this usually take?
About 5 minutes on most CMS and code stacks when you already have access to edit the page.
Where do I start?
Start with: Set lang on the <html> element to match the visible text (en, de, es, …). Then use the platform picker on this page for placement notes.