How to serve an HTML page in multiple languages

uworlds used Ask the Experts™
I would like to know how to create multiple language versions of an HTML page so that when a person comes to the page, the language of the person's browser is used to serve the page in that language.   My understanding is to use hreflang but not entirely clear on how it works.  I would also like to know how to structure the content in folders on the Web server to make all this happen.   Thank you!   Kind regards
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018
Commented: provides a good starting point.

Best to use Google's suggested approach... because it's not really a suggestion, it's a requirement for correct multi-lingual or multi-regional SEO traction.

If you get this right, you'll have great SEO.

If you get this wrong, you can get booted out of the Google index completely.

Tip: Starting with Google's "suggested approach" is always best for content organization.

Always provide a way for the visitor to select a language as he browser language is maybe not the language of the visitor.

Documentation about hreflang / sitemap

I use one directory per language if there are lot of pages

I the main directory I put all file from the main language let say english
an I create a directory for all language if there are a lot of page

Make sure you set a default
 <link rel="alternate" href="" hreflang="x-default" />

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial