W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2002

Accessible forms in XHTML

From: Andrew Johns <andrew.johns@jkd.co.uk>
Date: Wed, 17 Jul 2002 10:28:20 +0100
Message-ID: <FDFC0668A850D246BC4231715D94904E263CA7@uranus.jkd.co.uk>
To: <w3c-wai-ig@w3.org>

Good morning everyone,

On researching information for what makes a form more accessible, I came across many examples of <label> tags, whereby an id and name are both set, but usually different.

an example being:

<label for="label">A label:</label><input type="text" id="label" name="txt">

from my understanding of XHTML, the name attribute is being dropped in favour of the id tag.  In many XHTML guides they recommend to set both and ID and a name attribute for compatibility between old and new browsers.  This would mean something like this:

<input type="text" id="txt" name="txt" />

now my worry is what if I want to do an accessible form in XHTML? As most examples of accessible forms tend to have different names and ids for elements, it leads me to believe that they HAVE to be different, and if so, how compatible is this with XHTML?

Or maybe I've just got the wrong end of the stick?

Regards,

Andy



---
Andrew Johns
Developer
JKD
Westminster Business Square
1-45 Durham Street
London 
SE11 5JH
Tel:  020 7793 9399
Fax: 020 7793 9299
URL:  www.jkd.co.uk
---


James Kelsey Design Ltd (JKD) or The Incepta Group plc and its subsidiary companies may not be held responsible for the content of this email as it may reflect the personal view of the sender and not that of the company. JKD run anti virus software on all servers and all workstations, they can not be held responsible for any infected files that you may receive. JKD advises all recipients to virus scan any file attachments.
Received on Wednesday, 17 July 2002 05:28:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:05 GMT