Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Language question
- John Larronn
February 17, 2009, 9:43 pm
rate this thread
I am building a website which among others has three pages of text.
The first page is written in Dutch, the second page in English and the third
page in both Dutch and English.
Do I have to write at top of the first page lang=NL, on top of the second
page lang=EN-GB, and on the third page both lang=NL and lang=EN-GB?
Or should I do this in a different way?
Thanks very much indeed.
- Jukka K. Korpela
February 17, 2009, 9:55 pm
Re: Language question
For most purposes, it really doesn't matter. Browsers generally ignore the
lang attribute, and search engines care even less - partly because lang
markup is so often plain wrong (e.g., lang="en" sput out by clueless
authoring software irrespectively of the language actually used).
You can only have one lang attribute per element, so if you want to use
language markup for the bilingual page, use <html lang="..."> according to
the main language and use lang="..." for any element in the other language.
Using lang="en" is usually better than lang="en-GB", since the few programs
that recognize language markup might understand the simpler form only. And
how often would it really matter to software which version of English you