Skip to content
Justice Tech School

Input Groups

Input groups attach text, buttons or icons to an input using .input-group and .input-group-text.

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

Exercise

Text addon class.

input-group-

Quiz Test

What are input groups for?

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