Form Elements page header description goes here...


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. Please read the official Bootstrap documentation for the full list of options.

Sizing

Set heights using classes like .form-control-lg and .form-control-sm.

Readonly

Add the readonly boolean attribute on an input to prevent modification of the input’s value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.

Readonly plain text

If you want to have <input readonly> elements in your form styled as plain text, use the .form-control-plaintext class to remove the default form field styling and preserve the correct margin and padding.

Range inputs

Set horizontally scrollable range inputs using .form-range.

Checkboxes

Default checkboxes are improved upon with the help of .form-check, a single class for both input types that improves the layout and behavior of their HTML elements.

DEFAULT CHECKBOX
INLINE CHECKBOX

Radios

Default radios are improved upon with the help of .form-check, a single class for both input types that improves the layout and behavior of their HTML elements. You can use Bootstrap custom radio for styled radio button.

DEFAULT RADIO
INLINE RADIO

Switches

A switch has the markup of a custom checkbox but uses the .form-switch class to render a toggle switch. Switches also support the disabled attribute.

Select menu

Custom <select> menus need only a custom class, .form-select to trigger the custom styles. Custom styles are limited to the <select>’s initial appearance and cannot modify the <option>s due to browser limitations.

DEFAULT
SIZING

File browser

The file input is the most gnarly of the bunch and requires additional JavaScript if you’d like to hook them up with functional Choose file… and selected file name text.

Form grid

More complex forms can be built using bootstrap grid classes. Use these for form layouts that require multiple columns, varied widths, and additional alignment options.

Help text

Block-level help text in forms can be created using .form-text. Inline help text can be flexibly implemented using any inline HTML element and utility classes like .text-muted.

Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.

Input group

Place one add-on or button on either side of an input. You may also place one on both sides of an input. Remember to place <label> outside the input group.

@ .com

Validation

Provide valuable, actionable feedback to your users with HTML5 form validation. Choose from the browser default validation feedback, or implement custom messages with our built-in classes and starter JavaScript.

Looks good!
Please provide a name
@
Please choose a username.
Please select a valid state.
Please enter a message in the textarea.
You must agree before submitting.

Looks good!
@
Field is required
Please select a valid state.

Dark Mode NEW
Adjust the appearance to reduce glare and give your eyes a break.

火爆赛马游戏联盟

本站致力于为用户提供最新最全的火爆赛马游戏热榜及其玩法攻略,涵盖各类赛事信息与游戏规则。我们通过详细的汇总和解析,让您在参与各种赛马游戏时,轻松掌握玩法和技巧,快速提升您的游戏水平。无论是新手还是老玩家,都能在这里找到及时的更新和实用的建议,助您在下注与游戏中获得更大的乐趣