- From: poot <cvsmail@w3.org>
- Date: Sun, 13 Sep 2009 18:30:56 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: <optgroup> example (whatwg r3823)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2991&r2=1.2992&f=h
http://html5.org/tools/web-apps-tracker?from=3822&to=3823
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2991
retrieving revision 1.2992
diff -u -d -r1.2991 -r1.2992
--- Overview.html 13 Sep 2009 08:54:07 -0000 1.2991
+++ Overview.html 13 Sep 2009 09:30:36 -0000 1.2992
@@ -32157,6 +32157,33 @@
<a href="#reflect">reflect</a> the respective content attributes of the same
name.</p>
+ </div><div class="example">
+
+ <p>The following snippet shows how a set of lessons from three
+ courses could be offered in a <code><a href="#the-select-element">select</a></code> drop-down
+ widget:</p>
+
+ <pre><form action="courseselector.dll" method="get">
+ <p>Which course would you like to watch today?
+ <p><label>Course:
+ <select name="c">
+ <optgroup label="8.01 Physics I: Classical Mechanics">
+ <option value="8.01.1">Lecture 01: Powers of Ten
+ <option value="8.01.2">Lecture 02: 1D Kinematics
+ <option value="8.01.3">Lecture 03: Vectors
+ <optgroup label="8.02 Electricity and Magnestism">
+ <option value="8.02.1">Lecture 01: What holds our world together?
+ <option value="8.02.2">Lecture 02: Electric Field
+ <option value="8.02.3">Lecture 03: Electric Flux
+ <optgroup label="8.03 Physics III: Vibrations and Waves">
+ <option value="8.03.1">Lecture 01: Periodic Phenomenon
+ <option value="8.03.2">Lecture 02: Beats
+ <option value="8.03.3">Lecture 03: Forced Oscillations with Damping
+ </select>
+ </label>
+ <p><input type=submit value="▶ Play">
+</form></pre>
+
</div><h4 id="the-option-element"><span class="secno">4.10.9 </span>The <dfn><code>option</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt>
<dd>None.</dd>
<dt>Contexts in which this element may be used:</dt>
Received on Sunday, 13 September 2009 09:31:31 UTC