HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Select menus are used if you want to allow the user to pick from multiple options
Select menus are used if you want to allow the user to pick from multiple options.
To style a select menu in Bootstrap 5, add the .form-select
class to the
<select> element:
<select class="form-select">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
Use the .form-select-lg
or .form-select-sm
class to change the size of the select menu:
<select class="form-select
form-select-lg">
<select class="form-select">
<select class="form-select
form-select-sm">
Use the disabled
attribute to disable the select menu:
<select class="form-select" disabled>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
Bootstrap will also style data lists, which is a list of pre-defined options for an <input> element:
<label for="browser" class="form-label">Choose your browser from the
list:</label>
<input class="form-control" list="browsers" name="browser"
id="browser">
<datalist id="browsers">
<option value="Edge">
<option value="Firefox">
<option value="Chrome">
<option
value="Opera">
<option value="Safari">
</datalist>