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

RE: Accessible forms in XHTML

From: RUST Randal <RRust@COVANSYS.com>
Date: Wed, 17 Jul 2002 08:05:32 -0400
Message-ID: <37925254B67DD311876C009027B0FF92027FC43C@cbscolex01.cbsinc.com>
To: w3c-wai-ig@w3.org

>You use the following example:
>
><label for="workingYes">Yes</label>
><input type="radio" id="workingYes" name="working" value="y" />
>
><label for="workingNo">No</label>
><input type="radio" id="workingNo" name="working" value="n" />
>
>Is this acceptable to an AAA rating?

The example I posted did not include the FORM, FIELDSET and LEGEND elements
intentionally.

Here is what it really looks like:

<form id="form1" name="form1" method="" action="">
	<fieldset>
	<legend>Demographic Data</legend>
	<div class="row">
		<span class="label">Are You Working?</span>
		<label for="workingYes">Yes</label>
		<input type="radio" id="workingYes" name="working" value="y"
/>
		<label for="workingNo">No</label>
		<input type="radio" id="workingNo" name="working" value="n"
/>
	</div>
	</fieldset>
	<div class="controls">
		<input type="submit" accesskey="s" id="submit" name="submit"
value="Submit" />
	</div>
</form>

This solution is XHTML 1.0 Transitional, and uses CSS to format the visual
display.

Randal
Received on Wednesday, 17 July 2002 08:02:42 GMT

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