Go Live overview
Set your site's language code
Setting your site's language code tells search engines what language your content is written in and which geographic audiences it's intended for. It's a signal that affects how Google chooses to serve your pages to searchers in different locations and languages.
There are two main ways to declare language on a web page: the lang attribute on the HTML element, and hreflang tags for multilingual sites. For a single-language site, the HTML lang attribute is the one that matters. It looks like this in your page source: <html lang="en"> for English, <html lang="fr"> for French, and so on using ISO 639-1 language codes.
In Webflow, set the language at the site level in Site Settings → SEO. There's a field for the language code that applies globally to all pages. Set it to the primary language of your site's content. This applies the lang attribute to the HTML element on every page automatically.
For multilingual sites where different pages or sections are in different languages, you need hreflang tags. These tell Google that multiple versions of a page exist in different languages and link them together. Webflow's Localization feature handles this natively for sites on the appropriate plan. If you're managing multilingual content manually, hreflang tags need to be added via custom code in Webflow's Page Settings under Custom Code → Head section.
Why this matters for SEO: Google uses language signals to decide which version of your content to show in which locale. A site with no language declaration may be interpreted correctly most of the time based on content analysis, but an explicit declaration removes any ambiguity. For sites targeting specific countries, combining the lang attribute with country-specific hreflang tags and geotargeting settings in GSC gives Google the clearest possible signal about your intended audience.
Check this setting once at launch. It rarely needs to change unless you expand into new languages or markets. If you do add a new language version, update the hreflang tags at the same time.
How to do it on Webflow?
- Go to Site settings > General tab > Localization
- Type in your 2-letter code under the Language code
- Click Save changes
- Publish your site