Language Attribute

The lang attribute is crucial for enhancing accessibility in web design. It specifies the language of the content within an HTML element. Accurately declaring the language enables assistive technologies, such as screen readers, to provide a better user experience, particularly for individuals with diverse language needs or those who use translation services.

To set your website's language, go to the site settings. There, you can add the Site Language attribute, which will automatically update the lang attribute on your website.

Localization

When using the built-in localization feature, we automatically switch the lang attribute to match your selected locale.

Additionally, we set an hreflang tag to indicate if a page is a duplicate in another language. This helps Google understand the relationship between pages on your site, potentially improving international SEO.

Both tags are managed behind the scenes and are not accessible through the UI. Therefore, third-party translation services cannot set them, as they cannot change the website's source code.