hixie: Add a more conventional example for <fieldset>. (whatwg r6405)

hixie: Add a more conventional example for <fieldset>. (whatwg r6405)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5110&r2=1.5111&f=h
http://html5.org/tools/web-apps-tracker?from=6404&to=6405

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5110
retrieving revision 1.5111
diff -u -d -r1.5110 -r1.5111
--- Overview.html 10 Aug 2011 01:26:51 -0000 1.5110
+++ Overview.html 10 Aug 2011 01:47:30 -0000 1.5111
@@ -31280,6 +31280,23 @@
 
   </div><div class="example">
 
+   <p>This example shows a <code><a href="#the-fieldset-element">fieldset</a></code> element being used to
+   group a set of related controls:</p>
+
+   <pre>&lt;fieldset&gt;
+ &lt;legend&gt;Display&lt;/legend&gt;
+ &lt;p&gt;&lt;label&gt;&lt;input type=radio name=c value=0 checked&gt; Black on White&lt;/label&gt;
+ &lt;p&gt;&lt;label&gt;&lt;input type=radio name=c value=1&gt; White on Black&lt;/label&gt;
+ &lt;p&gt;&lt;label&gt;&lt;input type=checkbox name=g&gt; Use grayscale&lt;/label&gt;
+ &lt;p&gt;&lt;label&gt;Enhance contrast &lt;input type=range name=e list=contrast min=0 max=100 value=0 step=1&gt;&lt;/label&gt;
+ &lt;datalist id=contrast&gt;
+  &lt;option label=Normal value=0&gt;
+  &lt;option label=Maximum value=100&gt;
+ &lt;/datalist&gt;
+&lt;/fieldset&gt;</pre>
+
+  </div><div class="example">
+
    <p>The following snippet shows a fieldset with a checkbox in the
    legend that controls whether or not the fieldset is enabled. The
    contents of the fieldset consist of two required text fields and an

Received on Wednesday, 10 August 2011 01:47:39 UTC