How do I add a language switcher to my website?+
Pick your languages and style, copy the HTML where the switcher should appear, add the CSS to your stylesheet, and include the JavaScript before the closing body tag if you enabled same-page switching or the select style.
How do I make a language selector dropdown in HTML?+
Choose the dropdown style, then copy the generated HTML, CSS, and JavaScript. The dropdown is a native details and summary element with one link per language, so it opens with a click or the keyboard and needs no framework.
Should I use a dropdown or a select element for languages?+
A dropdown of links is better for SEO because each language is a crawlable link. A native select is compact and familiar on mobile but needs JavaScript to navigate, so pair it with hreflang tags.
Does the language switcher work without JavaScript?+
Yes. The dropdown uses a native details element and the inline links are plain anchors, so both work without JavaScript. The script only keeps visitors on the equivalent page, and is required for the select style.
Should I use flags in a language switcher?+
Usually not. Flags represent countries, not languages: Spanish is spoken in many countries and Switzerland has four languages. Native language names are clearer, which is why flags are off by default.
Why show language names in their own language?+
A visitor who doesn't read your current language can still find theirs. Someone looking for German recognizes Deutsch far more easily than the word for German in a language they don't speak.
Is a language switcher good for SEO?+
It helps users and crawlers discover language versions through normal links, but it does not replace hreflang. Add the generated hreflang tags to each page's head so search engines understand which URLs are translations.
Does it support subdomains and query parameters?+
Yes. Choose subdirectories, subdomains, or a ?lang= parameter, and decide whether the default language has its own prefix. Links and the script follow that structure.