Forum Moderators: open
All my pages source code are starting with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=en xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
Now, my sites are in dutch. Do I have to change the "en" in "nl" in the code above?
I was running the page through the W3C HTML validator and I received tons of errors starting with the above code.
You also need to identify the character set you are going to be using. For Western Europe this is usually either ISO 8859-1 or UTF-8:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> OR
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
If you also want to tell search engines and online translation tools that the content of your site is in the Dutch language, then you'll also need to add this code into the header:
<meta http-equiv="Content-Language" content="NL">
The codes come from the ISO 639 [laurentia.com] standard [oasis-open.org].