Support Forums
ATutor Bug Reports
lang attribute problem in XHTML 1.1.
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | ||
louboumian![]() | Subject: lang attribute problem in XHTML 1.1. | |
| My post disappeared, or has been erased (?), but I just had time to read 2 answers. Here is more or less my original post: When I try to validate my index page, I get the following warning: ----------------- Line 3, Column 1: Document has invalid language code. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" con ... Repair: Add a valid 2 letter or 3 letter language code as defined in the ISO 639 specification to the HTML 'lang' attribute. ---------------- When I replace <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> by <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> I get an HTML validation warning saying that lang exits but is not allowed here. 1) Mod asked where this line was used. Answer: In an XHTML 1.1. doc. This one: Starting with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 2) A user (don't remember his/her handle, suggested to replace : <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> by <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> (exactly the same line). ???? Posted: 2009-09-20 22:32:17 | ||
harris![]() | Subject: Re: lang attribute problem in XHTML 1.1. | |
| Refer to www.atutor.ca/view/3/18697/1.html Posted: 2009-09-21 08:58:39 | ||
| Page: 1 | ||
You must be signed-in to post.


.gif)
