- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 17 Aug 2011 21:51:40 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv27948
Modified Files:
Overview.html
Log Message:
examples for <select required> (whatwg r6493)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5194
retrieving revision 1.5195
diff -u -d -r1.5194 -r1.5195
--- Overview.html 17 Aug 2011 21:36:51 -0000 1.5194
+++ Overview.html 17 Aug 2011 21:51:35 -0000 1.5195
@@ -37173,6 +37173,18 @@
</select>
</p></pre>
+ <p>When there is no default option, a placeholder can be used
+ instead:</p>
+
+ <pre><select name="unittype" <strong>required</strong>>
+ <strong><option value=""> Select unit type &lt/option></strong>
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3"> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+</select></pre>
+
</div><div class="example">
<p>Here, the user is offered a set of options from which he can
@@ -37189,6 +37201,26 @@
</select>
</p></pre>
+ </div><div class="example">
+
+ <p>Sometimes, a user has to select one or more items. This example
+ shows such an interface.</p>
+
+ <pre><p>Select the songs from that you would like on your Act II Mix Tape:</p>
+<select multiple required name="act2">
+ <option value="s1">It Sucks to Be Me (Reprise)
+ <option value="s2">There is Life Outside Your Apartment
+ <option value="s3">The More You Ruv Someone
+ <option value="s4">Schadenfreude
+ <option value="s5">I Wish I Could Go Back to College
+ <option value="s6">The Money Song
+ <option value="s7">School for Monsters
+ <option value="s8">The Money Song (Reprise)
+ <option value="s9">There's a Fine, Fine Line (Reprise)
+ <option value="s10">What Do You Do With a B.A. in English? (Reprise)
+ <option value="s11">For Now
+</select></pre>
+
</div><h4 id="the-datalist-element"><span class="secno">4.10.10 </span>The <dfn><code>datalist</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
<dd><a href="#flow-content">Flow content</a>.</dd>
<dd><a href="#phrasing-content">Phrasing content</a>.</dd>
Received on Wednesday, 17 August 2011 21:51:41 UTC