<formclass="row g-3"><divclass="col-md-6"><labelfor="inputEmail4"class="form-label">Email</label><inputtype="email"class="form-control"id="inputEmail4"></div><divclass="col-md-6"><labelfor="inputPassword4"class="form-label">Password</label><inputtype="password"class="form-control"id="inputPassword4"></div><divclass="col-12"><labelfor="inputAddress"class="form-label">Address</label><inputtype="text"class="form-control"id="inputAddress"placeholder="1234 Main St"></div><divclass="col-12"><labelfor="inputAddress2"class="form-label">Address 2</label><inputtype="text"class="form-control"id="inputAddress2"placeholder="Apartment, studio, or floor"></div><divclass="col-md-6"><labelfor="inputCity"class="form-label">City</label><inputtype="text"class="form-control"id="inputCity"></div><divclass="col-md-4"><labelfor="inputState"class="form-label">State</label><selectid="inputState"class="form-select"><optionselected>Choose...</option><option>...</option></select></div><divclass="col-md-2"><labelfor="inputZip"class="form-label">Zip</label><inputtype="text"class="form-control"id="inputZip"></div><divclass="col-12"><divclass="form-check"><inputclass="form-check-input"type="checkbox"id="gridCheck"><labelclass="form-check-label"for="gridCheck">
Check me out
</label></div></div><divclass="col-12"><buttontype="submit"class="btn btn-primary">Sign in</button></div></form>
<formclass="row g-3"><divclass="col-md-6"><labelfor="inputEmail4"class="form-label">Email</label><inputtype="email"class="form-control"id="inputEmail4"></div><divclass="col-md-6"><labelfor="inputPassword4"class="form-label">Password</label><inputtype="password"class="form-control"id="inputPassword4"></div><divclass="col-12"><labelfor="inputAddress"class="form-label">Address</label><inputtype="text"class="form-control"id="inputAddress"placeholder="1234 Main St"></div><divclass="col-12"><labelfor="inputAddress2"class="form-label">Address 2</label><inputtype="text"class="form-control"id="inputAddress2"placeholder="Apartment, studio, or floor"></div><divclass="col-md-6"><labelfor="inputCity"class="form-label">City</label><inputtype="text"class="form-control"id="inputCity"></div><divclass="col-md-4"><labelfor="inputState"class="form-label">State</label><selectid="inputState"class="form-select"><optionselected>Choose...</option><option>...</option></select></div><divclass="col-md-2"><labelfor="inputZip"class="form-label">Zip</label><inputtype="text"class="form-control"id="inputZip"></div><divclass="col-12"><divclass="form-check"><inputclass="form-check-input"type="checkbox"id="gridCheck"><labelclass="form-check-label"for="gridCheck">
Check me out
</label></div></div><divclass="col-12"><buttontype="submit"class="btn btn-primary">Sign in</button></div></form>
<form><fieldset><legend>Legend</legend><divclass="form-group row"><labelfor="staticEmail"class="col-sm-2 col-form-label">Email</label><divclass="col-sm-10"><inputtype="text"readonly=""class="form-control-plaintext"id="staticEmail"value="email@example.com"></div></div><divclass="form-group"><labelfor="exampleInputEmail1"class="form-label mt-4">Email address</label><inputtype="email"class="form-control"id="exampleInputEmail1"aria-describedby="emailHelp"placeholder="Enter email"><smallid="emailHelp"class="form-text text-muted">We'll never share your email with anyone else.</small></div><divclass="form-group"><labelfor="exampleInputPassword1"class="form-label mt-4">Password</label><inputtype="password"class="form-control"id="exampleInputPassword1"placeholder="Password"></div><divclass="form-group"><labelfor="exampleSelect1"class="form-label mt-4">Example select</label><selectclass="form-select"id="exampleSelect1"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select></div><divclass="form-group"><labelfor="exampleSelect2"class="form-label mt-4">Example multiple select</label><selectmultiple=""class="form-select"id="exampleSelect2"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select></div><divclass="form-group"><labelfor="exampleTextarea"class="form-label mt-4">Example textarea</label><textareaclass="form-control"id="exampleTextarea"rows="3"></textarea></div><divclass="form-group"><labelfor="formFile"class="form-label mt-4">Default file input example</label><inputclass="form-control"type="file"id="formFile"></div><fieldsetclass="form-group"><legendclass="mt-4">Radio buttons</legend><divclass="form-check"><labelclass="form-check-label"><inputtype="radio"class="form-check-input"name="optionsRadios"id="optionsRadios1"value="option1"checked="">
Option one is this and that—be sure to include why it's great
</label></div><divclass="form-check"><labelclass="form-check-label"><inputtype="radio"class="form-check-input"name="optionsRadios"id="optionsRadios2"value="option2">
Option two can be something else and selecting it will deselect option one
</label></div><divclass="form-check disabled"><labelclass="form-check-label"><inputtype="radio"class="form-check-input"name="optionsRadios"id="optionsRadios3"value="option3"disabled="">
Option three is disabled
</label></div></fieldset><fieldsetclass="form-group"><legendclass="mt-4">Checkboxes</legend><divclass="form-check"><inputclass="form-check-input"type="checkbox"value=""id="flexCheckDefault"><labelclass="form-check-label"for="flexCheckDefault">
Default checkbox
</label></div><divclass="form-check"><inputclass="form-check-input"type="checkbox"value=""id="flexCheckChecked"checked=""><labelclass="form-check-label"for="flexCheckChecked">
Checked checkbox
</label></div></fieldset><fieldset><legendclass="mt-4">Switches</legend><divclass="form-check form-switch"><inputclass="form-check-input"type="checkbox"id="flexSwitchCheckDefault"><labelclass="form-check-label"for="flexSwitchCheckDefault">Default switch checkbox input</label></div><divclass="form-check form-switch"><inputclass="form-check-input"type="checkbox"id="flexSwitchCheckChecked"checked=""><labelclass="form-check-label"for="flexSwitchCheckChecked">Checked switch checkbox input</label></div></fieldset><fieldsetclass="form-group"><legendclass="mt-4">Ranges</legend><labelfor="customRange1"class="form-label">Example range</label><inputtype="range"class="form-range"id="customRange1"><labelfor="disabledRange"class="form-label">Disabled range</label><inputtype="range"class="form-range"id="disabledRange"disabled=""><labelfor="customRange3"class="form-label">Example range</label><inputtype="range"class="form-range"min="0"max="5"step="0.5"id="customRange3"></fieldset><buttontype="submit"class="btn btn-primary">Submit</button></fieldset></form>
Example of .form-group
<form><divclass=”form-group”><labelfor=”exampleInputEmail1”>Email
address</label><inputtype=”email”class=”form-control”id=”exampleInputEmail1”ariadescribedby=”emailHelp”placeholder=”Provideemail”></div><divclass=”form-group”><labelfor=”exampleInputPassword1”>Your password</label><inputtype=”password”class=”form-control”id=”exampleInputPassword1”placeholder=”Password”></div><divclass=”form-groupform-check”><inputtype=”checkbox”class=”form-check-input”id=”exampleCheck1”><labelclass=”form-check-label”for=”exampleCheck1”>Remember me</label></div><buttontype=”submit”class=”btnbtn-primary”>Submit</button></form>
.form-control
Use this class to style all textual form controls such as user input, titles, etc.
<form><divclass=”form-group”><labelfor=”exampleFormControlInput1”>Email address</label><inputtype=”email”class=”form-control”id=”exampleFormControlInput1”placeholder=”name@example.com”></div>
.form-control-file
Add this class whenever you need to provide the user with an option to upload a file to the form.
<inputtype=”file”class=”form-control-file”id=”exampleFormControlFile1”>
.form-control-lg and .form-control-sm.
Create a visual hierarchy within your form by adding .form-control-lg to make bigger input areas and .form-control-sm to
make smaller ones.
<inputclass=”form-controlform-control-lg”type=”text”placeholder=”.form-controllg”><inputclass=”form-controlform-control-sm”type=”text”placeholder=”.form-controlsm”>
<!-- Font Awesome --><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"rel="stylesheet"/><!-- Google Fonts --><linkhref="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"rel="stylesheet"/><!-- MDB --><linkhref="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.11.0/mdb.min.css"rel="stylesheet"/>
<form><fieldset><legend>Legend</legend><divclass="form-group row"><labelfor="staticEmail"class="col-sm-2 col-form-label">Email</label><divclass="col-sm-10"><inputtype="text"readonly=""class="form-control-plaintext"id="staticEmail"value="email@example.com"></div></div><divclass="form-group"><labelfor="exampleInputEmail1"class="form-label mt-4">Email address</label><inputtype="email"class="form-control"id="exampleInputEmail1"aria-describedby="emailHelp"placeholder="Enter email"><smallid="emailHelp"class="form-text text-muted">We'll never share your email with anyone else.</small></div><divclass="form-group"><labelfor="exampleInputPassword1"class="form-label mt-4">Password</label><inputtype="password"class="form-control"id="exampleInputPassword1"placeholder="Password"></div><divclass="form-group"><labelfor="exampleSelect1"class="form-label mt-4">Example select</label><selectclass="form-select"id="exampleSelect1"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select></div><divclass="form-group"><labelfor="exampleSelect2"class="form-label mt-4">Example multiple select</label><selectmultiple=""class="form-select"id="exampleSelect2"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select></div><divclass="form-group"><labelfor="exampleTextarea"class="form-label mt-4">Example textarea</label><textareaclass="form-control"id="exampleTextarea"rows="3"></textarea></div><divclass="form-group"><labelfor="formFile"class="form-label mt-4">Default file input example</label><inputclass="form-control"type="file"id="formFile"></div><fieldsetclass="form-group"><legendclass="mt-4">Radio buttons</legend><divclass="form-check"><labelclass="form-check-label"><inputtype="radio"class="form-check-input"name="optionsRadios"id="optionsRadios1"value="option1"checked="">
Option one is this and that—be sure to include why it's great
</label></div><divclass="form-check"><labelclass="form-check-label"><inputtype="radio"class="form-check-input"name="optionsRadios"id="optionsRadios2"value="option2">
Option two can be something else and selecting it will deselect option one
</label></div><divclass="form-check disabled"><labelclass="form-check-label"><inputtype="radio"class="form-check-input"name="optionsRadios"id="optionsRadios3"value="option3"disabled="">
Option three is disabled
</label></div></fieldset><fieldsetclass="form-group"><legendclass="mt-4">Checkboxes</legend><divclass="form-check"><inputclass="form-check-input"type="checkbox"value=""id="flexCheckDefault"><labelclass="form-check-label"for="flexCheckDefault">
Default checkbox
</label></div><divclass="form-check"><inputclass="form-check-input"type="checkbox"value=""id="flexCheckChecked"checked=""><labelclass="form-check-label"for="flexCheckChecked">
Checked checkbox
</label></div></fieldset><fieldset><legendclass="mt-4">Switches</legend><divclass="form-check form-switch"><inputclass="form-check-input"type="checkbox"id="flexSwitchCheckDefault"><labelclass="form-check-label"for="flexSwitchCheckDefault">Default switch checkbox input</label></div><divclass="form-check form-switch"><inputclass="form-check-input"type="checkbox"id="flexSwitchCheckChecked"checked=""><labelclass="form-check-label"for="flexSwitchCheckChecked">Checked switch checkbox input</label></div></fieldset><fieldsetclass="form-group"><legendclass="mt-4">Ranges</legend><labelfor="customRange1"class="form-label">Example range</label><inputtype="range"class="form-range"id="customRange1"><labelfor="disabledRange"class="form-label">Disabled range</label><inputtype="range"class="form-range"id="disabledRange"disabled=""><labelfor="customRange3"class="form-label">Example range</label><inputtype="range"class="form-range"min="0"max="5"step="0.5"id="customRange3"></fieldset><buttontype="submit"class="btn btn-primary">Submit</button></fieldset></form>
Example of .form-group
<form><divclass=”form-group”><labelfor=”exampleInputEmail1”>Email
address</label><inputtype=”email”class=”form-control”id=”exampleInputEmail1”ariadescribedby=”emailHelp”placeholder=”Provideemail”></div><divclass=”form-group”><labelfor=”exampleInputPassword1”>Your password</label><inputtype=”password”class=”form-control”id=”exampleInputPassword1”placeholder=”Password”></div><divclass=”form-groupform-check”><inputtype=”checkbox”class=”form-check-input”id=”exampleCheck1”><labelclass=”form-check-label”for=”exampleCheck1”>Remember me</label></div><buttontype=”submit”class=”btnbtn-primary”>Submit</button></form>
.form-control
Use this class to style all textual form controls such as user input, titles, etc.
<form><divclass=”form-group”><labelfor=”exampleFormControlInput1”>Email address</label><inputtype=”email”class=”form-control”id=”exampleFormControlInput1”placeholder=”name@example.com”></div>
.form-control-file
Add this class whenever you need to provide the user with an option to upload a file to the form.
<inputtype=”file”class=”form-control-file”id=”exampleFormControlFile1”>
.form-control-lg and .form-control-sm.
Create a visual hierarchy within your form by adding .form-control-lg to make bigger input areas and .form-control-sm to
make smaller ones.
<inputclass=”form-controlform-control-lg”type=”text”placeholder=”.form-controllg”><inputclass=”form-controlform-control-sm”type=”text”placeholder=”.form-controlsm”>
<!-- Font Awesome --><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"rel="stylesheet"/><!-- Google Fonts --><linkhref="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"rel="stylesheet"/><!-- MDB --><linkhref="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.11.0/mdb.min.css"rel="stylesheet"/>