Skip to content
Justice Tech School

Checks, Radios and Switches

form-check wraps checkboxes and form-switch makes toggles.

Example
<div class="form-check">
  <input class="form-check-input" type="checkbox" id="c">
  <label class="form-check-label" for="c">Agree</label>
</div>
<div class="form-check form-switch">
  <input class="form-check-input" type="checkbox" role="switch">
</div>

Exercise

Switch.

class="form-check form-"

Quiz Test

Which makes a toggle switch?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.