From f6a039905bb4a0d048d7e95951f4db6346c357fd Mon Sep 17 00:00:00 2001
From: Jordan Scales
<input type="checkbox" id="example1">
-<label for="example1">This is a checkbox</label>
-
Checkboxes can be selected and disabled with the standard checked and disabled
@@ -162,36 +156,20 @@
a consistent spacing between inputs.
<div class="field-row">
- <input checked type="checkbox" id="example2">
- <label for="example2">I am checked</label>
-</div>
-<div class="field-row">
- <input disabled type="checkbox" id="example3">
- <label for="example3">I am inactive</label>
-</div>
-<div class="field-row">
- <input checked disabled type="checkbox" id="example4">
- <label for="example4">I am inactive but still checked</label>
-</div>
- field-row class to ensure a consistent spacing between inputs.
- <div class="field-row">
- <input id="radio1" type="radio" name="first-example">
- <label for="radio1">Yes</label>
-</div>
-<div class="field-row">
- <input id="radio2" type="radio" name="first-example">
- <label for="radio2">No</label>
-</div>
-
Option buttons can also be checked and disabled with their corresponding
HTML attributes.
<div class="field-row">
- <input id="radio3" type="radio" name="second-example">
- <label for="radio3">Peanut butter should be smooth</label>
-</div>
-<div class="field-row">
- <input checked disabled id="radio4" type="radio" name="second-example">
- <label for="radio4">I understand why people like crunchy peanut butter</label>
-</div>
-<div class="field-row">
- <input disabled id="radio5" type="radio" name="second-example">
- <label for="radio5">Crunchy peanut butter is good</label>
-</div>
-