• Special Publication:  Public Website Visual Style Guide
  • August 2015

Forms

When customizing or creating new web forms use the form templates below to make sure they meet federal accessibility guidelines.

HTML Tags, Styled

Expand or close the following content.Button - Reset <input type="reset">

Expand or close the following content.Button - Submit <input type="submit">

Expand or close the following content.Checkbox <input type="checkbox">

Expand or close the following content.Fieldset <fieldset>

Expand or close the following content.Input - Color <input type="color">

Expand or close the following content.Input - Date <input type="date">

Expand or close the following content.Input - Date/Time <input type="datetime">

Expand or close the following content.Input - Date/Time - Local <input type="datetime-local">

Expand or close the following content.Input - Email <input type="email">

Expand or close the following content.Input - File <input type="file">

Expand or close the following content.Input - Image <input type="image">

Expand or close the following content.Input - Month <input type="month">

Expand or close the following content.Input - Number <input type="number">

Expand or close the following content.Input - Password <input type="password">

Expand or close the following content.Input - Range <input type="range">

Expand or close the following content.Input - Search <input type="search">

Expand or close the following content.Input - Telephone <input type="tel">

Expand or close the following content.Input - Time <input type="time">

Expand or close the following content.Input - URL <input type="url">

Expand or close the following content.Radio Buttons <input type="radio">

Expand or close the following content.Select Menu <select>

Expand or close the following content.Text Area Input <textarea>

Form Code Patterns

Expand or close the following content.Basic Feedback Form <form>

Expand or close the following content.Search Form <form role="search">

Helper Classes

Listed alphabetically by class name.

Form Helper Classes
Class Description
.checkbox-inline Displays checkboxes horizontally
.form-field-required Use for required form fields; places a red asterisk after the input label
.help-block For displaying helper text near a form element
.input-xl Sets the width of an input field to 100% of the width of its container
.input-large Sets the width of an input field to 75% of the width of its container
.input-medium Sets the width of an input field to 50% of the width of its container
.input-small Sets the width of an input field to 25% of the width of its container
.input-tiny Sets the width of an input field to 12% of the width of its container
.input-nano Sets the width of an input field to 6% of the width of its container
.radio-inline Displays radio buttons horizontally