Skip to content
Justice Tech School

Input Groups

input-group adds text or buttons beside an input.

Example
<div class="input-group mb-3">
  <span class="input-group-text">@</span>
  <input class="form-control" placeholder="Username">
  <button class="btn btn-outline-secondary">Go</button>
</div>

Exercise

Addon text.

class="input-group-"

Quiz Test

Which wrapper joins inputs and addons?

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