Sitepoint Memebers,
W3C says
"
You can also use attributes on elements that contain text in a language that is different from the surrounding content.
Example 1: Attribute-based language declarations in an XHTML 1.0 document served as text/html.
<html xml:lang=“en” xmlns= “http://www.w3.org/1999/xhtml”>
Alternatively, you may find documents that put language information in a meta element with http-equiv set to Content-Language.
Example 2: A Content-Language declaration in a meta element.
<meta http-equiv=“Content-Language” content=“en” />
"
Reference: Internationalization Best Practices: Specifying Language in XHTML & HTML Content
Does this mean if I have
<head><meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8” /> …
in the <head>
that I can take out
<html xml:lang=“en” xmlns= “http://www.w3.org/1999/xhtml”>
and add
<meta http-equiv=“Content-Language” content=“en” />
after
<meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8” />
I never liked the web address in that opening code (xmlns=), seems like it can slow down the rendering of a site or even cause problems. The web address, http://www.w3.org/1999/xhtm, leads to a document with English text for humans to read, not servers.
I looked up xmlns in google define and I coudn’t see how declaring xmlns was needed for my xhtml site.
Thanks,
Chris