Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(8 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Bug Reports

lang attribute problem in XHTML 1.1.


You must be signed-in to post.

AuthorSubject
  Page: 1
louboumian

Avatar for louboumian
Subject: lang attribute problem in XHTML 1.1.Quote this post in your reply
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

Avatar for harris
Subject: Re: lang attribute problem in XHTML 1.1.Quote this post in your reply
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.