Chris Ridpath wrote: <blockquote> > 49 - HTML document has a valid language code > http://www.w3.org/WAI/GL/WCAG20/tests/test49.html > It appears that bug 1183 [1] was resolved such that *both* the xhtml: lang and the html lang attributes must be used. It also says to follow the advice on authoring techniques for xhtml [2] which says to use the html lang *and/or* the xml: lang". Do we need both the HTML lang attribute and the xml:lang attribute to fulfill the WCAG requirement? </blockquote> - Which attribute is required depends on the DOCTYPE. HTML 4.01 uses just the lang attribute. XHTML served as text/html needs *both* lang and xml:lang. XHTML served as xml should have only the xml:lang attribute. Ain't life grand? John example: <html xml:lang="en" lang="en"> Chris [1] http://trace.wisc.edu/bugzilla_wcag/show_bug.cgi?id=1183 [2] http://www.w3.org/TR/i18n-html-tech-lang/Received on Monday, 31 January 2005 19:57:32 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:35 GMT