RE: Accessible forms in XHTML

>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 UTC