Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify language of website? (HTML?)

Tags:

html

How do I specify that a page is in a certain language so search engines can understand?

Is it a meta tag I put at the top? If it is, do you know if most of the search engines use this to determine language?

I have converted 1 page of content in english to several different languages, and would like to include that information in the html/let the search engines know which language they are dealing with.

like image 898
chris Avatar asked Jul 01 '09 23:07

chris


1 Answers

Quick google search gave me this: HTTP and meta for language. tl;dr

<html lang="en">

There are other ways of specifying. If you are using apache, you can use a file extension for apache to pull the correct version based on the user-agent's given preferences. for example, name your index page index.html.en, index.html.jp, index.html.de and so on...

like image 142
SingleNegationElimination Avatar answered Sep 22 '22 08:09

SingleNegationElimination