Lesson 10 of 2050%

(Progress persistence is disabled until Phase 9)

Bootstrap
Beginner

Input Groups

Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs.

Input Groups

Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs.

Bootstrap provides powerful, pre-built components and utilities.

Example

<div class="input-group mb-3">
  <span class="input-group-text" id="basic-addon1">@</span>
  <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
  <input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="button-addon2">
  <button class="btn btn-outline-secondary" type="button" id="button-addon2">Button</button>
</div>

Experiment with the code above in the Playground!

Lesson Progress

Practice This TopicTake QuizBuild a Bootstrap Project

Ready to practise?

Apply what you learned with a hands-on challenge.

Practise This Topic