Forum Moderators: open

Message Too Old, No Replies

Lang attribute?

in the HTML root?

         

jo1ene

1:02 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



Using the Firefox Web Developer features, I encountered this: "Failure - The HTML (Root) element does not use the 'lang' attribute." Huh? I have the language thing in a META tag, but I've never heard of this one.

BlobFisk

2:27 pm on Jun 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's a internationalisation tag in HTML.

<html lang="en"> or <body lang="en"> sets the document language as English. You can then go <p lang="fr"> for a paragraph of French.

[w3.org...]

HTH

jo1ene

2:55 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



I suppose I could have checked w3c first. Duh. Thank ye for the helpful response.

aapbe

2:11 pm on Aug 5, 2004 (gmt 0)

10+ Year Member



I just discovered this today too.
I always used <meta http-equiv="Content-Language" content="EN"> and <meta http-equiv="Content-Language" content="NL"> (for the Dutch version).
Now I read here and there that the meta language tag is useless.
Should I use <html lang="en"> and <html lang="du"> instead or just use nothing? This is particularly important for the Dutch version, since when I try to look for my Dutch pages in the Dutch language version of Google.be and Google.nl I can't find them, while in the English language Google I do find my Dutch pages.