Forum Moderators: open

Message Too Old, No Replies

doctypes and different (spoken) languages

e.g. Transitional//ES or Transitional//DE

         

jamie

8:27 am on Jul 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,

i can't remember where i read this but i've always thought that different languages should be specified in the doctype declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//ES"> (for spanish)

however firefox can't render the page properly when i use anything other than EN - have i got it wrong or is this a firefox bug?

thanks :)

bull

8:51 am on Jul 20, 2004 (gmt 0)

10+ Year Member



You do not specify the language in the DOCTYPE, use
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
for any language. However, specify it in the <html> tag as <html lang="de">, <html lang="es">, <html lang="it">.

See too [w3.org...]

jamie

9:46 am on Jul 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



thanks bull - have just updated everything

g1smd

10:05 pm on Jul 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is also the meta content-language tag, which also uses two-letter values from ISO 639 to define the language.