Bootstrap 3 Tutorial
Bootstrap provides the following form controls:
Options include input,Â
Bootstrap supports all of the HTML5 input types, including text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.
Inputs will NOT be fully styled if their type is not correctly defined!
The sample below includes two input elements, one of type text and one of type password:
The following example has a textarea:
Checkboxes are used when you want the user to select multiple selections from a list of preset alternatives.
The following example includes three checkboxes. The final option is disabled.
To have the checkboxes show on the same line, use the.checkbox-inline class:
Radio buttons are used when you wish to limit the user to only one option from a collection of preset selections.
The following example includes three radio buttons. The first option is checked by default, while the last option is disabled:
To make the radio buttons display on the same line, use the.radio-inline class:
Select lists are used when you want the user to choose from a variety of options.
The example below includes a dropdown list (select list):
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.