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

Proper Coding for Yes/No Questions

From: RUST Randal <RRust@COVANSYS.com>
Date: Tue, 5 Mar 2002 11:57:15 -0500
Message-ID: <37925254B67DD311876C009027B0FF9201D3AA46@cbscolex01.cbsinc.com>
To: "WAI (E-mail)" <w3c-wai-ig@w3.org>
I have several forms with simple "yes/no" questions on them.  I need to use
radio buttons for the selections.

Is the following code correct for accessibility?


<label for="smart">Are you smart?</label>
<label for="smartYes">Yes</label><input type="radio" id="smartYes" />
<label for="smartNo">No</label><input type="radio" id="smartNo" />


Randal Rust
Covansys, Inc.
Columbus, OH
Received on Tuesday, 5 March 2002 11:54:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:17 UTC