Tsallaka zuwa abun ciki
Justice Tech School

Form Controls

Use .form-label, .form-control and .form-text. Wrap fields in .mb-3 for spacing. Always connect labels to inputs with for and id.

Example
<form>
  <div class="mb-3">
    <label for="email" class="form-label">Email</label>
    <input type="email" class="form-control" id="email">
    <div class="form-text">We never share it.</div>
  </div>
  <button class="btn btn-primary">Send</button>
</form>

Exercise

Input class.

form-

Quiz Test

Why link label and input?

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