Clearly labelled form fields make it faster and easier for users to complete forms. Follow the guidelines below when creating form fields, and keep the text labels within each field in uppercase.
Be sure to use an appropriate type attribute on all inputs (e.g., email for email address or number for numerical information) to take advantage of newer input controls like email verification, number selection, and more.
Simple Form Example
Here’s a quick example to demonstrate Bootstrap’s form styles. Keep reading for documentation on required classes, form layout, and more.
Form controls
Textual form controls—like <input>s, <select>s, and <textarea>s—are styled with the .form-control class. Included are styles for general appearance, focus state, sizing, and more.
Be sure to explore our custom forms to further style <select>s.
Filter and Search Controls
These form controls help to filter and search for content on the page.