1

I'm new to web development and am curious about the standard practice regarding multi-language websites.

Suppose I want to build a website on which one can toggle the language by clicking a button.

Would it be better to make separate HTML files for the two different languages and make it so that clicking the button redirects the user to the corresponding file? Or would it be better to create blocks of code for each language in the same HTML file and toggle between them? If one approach is better than the other, why so?

Rohit Gupta
  • 2,468
  • 2
  • 9
  • 25

0 Answers0