Forum Moderators: open

Message Too Old, No Replies

Doctype XHTML 1.0 - selecting the language (?)

         

malasorte

1:15 am on May 7, 2007 (gmt 0)

10+ Year Member



Hi all,

I'm building a website that uses the XHTML 1.0 Transitional doctype. Here is the text:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

The website will be in Romanian, should I change the doctype to this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//RO"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ro" lang="ro">

Can I change only the last two "en" to "ro" and leave the first "EN" unmodified?

Thanks in advance for any suggestions!

encyclo

1:31 am on May 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should use:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//[b]EN[/b]"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[b]ro[/b]" lang="[b]ro[/b]">

Never change the

EN
in the doctype, as that refers to the language of the DTD, not the language of the document itself.

malasorte

1:37 am on May 7, 2007 (gmt 0)

10+ Year Member



Thank you encyclo!