Difference between revisions of "ARIA Radio and Radiogroup"

From Level Access Web Labs
Jump to navigation Jump to search
Line 4: Line 4:
 
</head>
 
</head>
 
<body>
 
<body>
<p>The following is a sample of using the ARIA radio and radiogroup roles.<br />
+
<p>The following is a sample of using the ARIA radio and radiogroup roles.</p>
<div id="radio_label">My radio label</div>
+
<h4 class="label required" id="gender2">Gender:</h4>
<ul role="radiogroup" aria-labelledby="radio_label">
+
<div role="radiogroup" aria-labelledby="gender2">
<li role="radio">Item #1</li>
+
<label for="role1">
<li role="radio">Item #2</li>
+
  <input type="radio" id="role1" value="2" name="role">Male
<li role="radio">Item #3</li>
+
</label>
</ul>
+
<label for="role2">
</p>
+
  <input type="radio" id="role2" value="2" name="role">Female
 +
</label>
 +
</div>
 
</body>
 
</body>
 
</html>
 
</html>
 
[[Category:ARIA]]
 
[[Category:ARIA]]

Revision as of 15:10, 28 March 2014

ARIA Radio and Radiogroup Example

The following is a sample of using the ARIA radio and radiogroup roles.

Gender: