` with the class `.form-group`.
* Add the class `.control-label` to the label.
## Example
[Try it Β»](#)
The result is as follows:

Bootstrap supports the most common form controls, mainly `input`, `textarea`, `checkbox`, `radio`, and `select`.
### Input
The most common form text field is the input. Users can enter most necessary form data in it. Bootstrap provides support for all native HTML5 input types, including: `text`, `password`, `datetime`, `datetime-local`, `date`, `month`, `time`, `week`, `number`, `email`, `url`, `search`, `tel`, and `color`. An appropriate `type` declaration is required for the `input` to receive full styling.
## Example
Label
[Try it Β»](#)
The result is as follows:

### Textarea
When you need multi-line input, you can use the textarea. You can change the `rows` attribute as needed (fewer rows = smaller box, more rows = larger box).
## Example
Textarea
[Try it Β»](#)
The result is as follows:

### Checkbox and Radio
Checkboxes and radio buttons are used to let users choose from a series of preset options.
* When creating a form, if you want users to select multiple options from a list, use `checkbox`. If you want to limit users to selecting only one option, use `radio`.
* Use the `.checkbox-inline` or `.radio-inline` class for a series of checkboxes and radio buttons to control them to display on the same line.
The following example demonstrates both types (default and inline):
## Example
Default Checkbox and Radio Buttons Option 1
Option 2
Option 1
Option 2 - selecting it will deselect Option 1
Inline Checkbox and Radio Buttons Option 1 Option 2 Option 3 Option 1 Option 2
[Try it Β»](#)
The result is as follows:

### Select
When you want users to choose from multiple options but only one option can be selected by default, use the select.
* Use `` to display list options, typically those that users are familiar with, such as states or numbers.
* Use `multiple="multiple"` to allow users to select multiple options.
The following example demonstrates both types (select and multiple):
## Example
Select list 12345Multiple select list 12345
[Try it Β»](#)
The result is as follows:

When you need to place plain text after a form label within a horizontal form, use the class `.form-control-static` on the `
`.
## Example
[Try it Β»](#)
The result is as follows:

In addition to the `:focus` state (i.e., when a user clicks an input or uses the tab key to focus on it), Bootstrap also defines styles for disabled inputs and provides classes for form validation.
### Input Focus
When an input receives `:focus`, the outline of the input is removed, and a `box-shadow` is applied.
### Disabled Input
If you want to disable an input, simply add the `disabled` attribute. This not only disables the input but also changes the style of the input and the cursor style when the mouse pointer hovers over the element.
### Disabled Fieldset
Add the `disabled` attribute to the `
` to disable all controls within it.
### Validation States
Bootstrap includes validation styles for error, warning, and success messages. Simply add the appropriate class (`.has-warning`, `.has-error`, or `.has-success`) to the parent element to use validation states.
The following example demonstrates all control states:
## Example
[Try it Β»](#)
The result is as follows:

You can use the classes `.input-lg` and `.col-lg-*` to set the height and width of the form, respectively. The following example demonstrates this:
## Example
.input-lg
Default select
.input-sm
[Try it Β»](#)
The result is as follows:

Bootstrap form controls can have block-level help text on inputs. To add a content block that spans the entire width, use `.help-block` after the ``. The following example demonstrates this:
## Example
Help text example A longer block of help text that breaks onto a new line and may extend beyond one line. This help text in the example has two lines total.
[Try it Β»](#)
The result is as follows:
