HTML Standard Tracker


File a bug

SVNBugCommentTime (UTC)
3821<button> example.2009-09-13 08:34
@@ -39793,20 +39793,32 @@ You cannot complete this form until the field is correct.</samp></pre>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and <code
   methods, are part of the <span>constraint validation API</span>. The
   <code title="dom-lfe-labels">labels</code> attribute provides a list
   of the element's <code>label</code>s.</p>
+  <div class="example">
+   <p>The following button is labeled "Show hint" and pops up a dialog
+   box when activated:</p>
+   <pre>&lt;button type=button
+        onclick="alert('This 15-20 minute piece was composed by George Gershwin.')">
+ Show hint
+  </div>
   <h4>The <dfn><code>select</code></dfn> element</h4>
   <dl class="element">
    <dd><span>Flow content</span>.</dd>
    <dd><span>Phrasing content</span>.</dd>
    <dd><span>Interactive content</span>.</dd>