Accessible forms in XHTML

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 UTC