2011-07-09 22:44, Ted Rolle Jr. wrote:

Would having the language declaration at the <html> level mean that
there must be two HTML pages?
<html lang="zh-tw">
</html>
<html lang="en">
</html>

No, you would use <html lang="..."> to specify the overall (main) language of the page and lang attributes in other elements to specify that their language is different, e.g.

<html lang="en">
[...]
<blockquote lang="zh-TW">...</blockquote>

If you additionally use a class attribute, to make styling possible on old browsers not supporting language-related selectors, you would write e.g.

<html lang="en" class="en">
[...]
<blockquote lang="zh-TW" class="zh-TW">...</blockquote>

A simple selector like .zh-TW would suffice if you just have e.g. elements containing Chinese inside a document otherwise in English, with no such complications as Chinese text containing English.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to