checkboxes and some tweaks to the docs
This commit is contained in:
parent
d12341bae0
commit
194f4c6b32
3 changed files with 55 additions and 7 deletions
|
|
@ -123,7 +123,6 @@
|
|||
|
||||
<div class="example">
|
||||
<button class="focused">I am focused</button>
|
||||
|
||||
<details>
|
||||
<summary>Show code</summary>
|
||||
<pre><code><button>I am focused</button></code></pre>
|
||||
|
|
@ -131,6 +130,36 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="component">
|
||||
<h3 id="checkbox">Checkbox</h3>
|
||||
<div>
|
||||
<blockquote>
|
||||
A <em>check box</em>represents an independent or non-exclusive choice.
|
||||
<footer>— Microsoft Windows User Experience, 8.3</footer>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
Checkboxes are represented with a sunken panel, populated with a "check" icon when
|
||||
selected, next to a label indicating the choice.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Note: You <strong>must</strong> include a corresponding label <strong>after</strong>
|
||||
your checkbox, using the <code><label></code> element with a <code>for</code> attribute
|
||||
pointed at the <code>id</code> of your input.
|
||||
</p>
|
||||
|
||||
<div class="example">
|
||||
<input type="checkbox" id="example1">
|
||||
<label for="example1">This is a checkbox</label>
|
||||
|
||||
<details>
|
||||
<summary>Show code</summary>
|
||||
<pre><code><input type="checkbox" id="example1">
|
||||
<label for="example1">This is a checkbox</label></code></pre>
|
||||
</details>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue