Bootstrap5 Range
--
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
Bootstrap5 Tutorial
Bootstrap5 TutorialBootstrap5 InstallationBootstrap5 ContainerBootstrap5 Grid SystemBootstrap5 TypographyBootstrap5 ColorsBootstrap5 TablesBootstrap5 ImagesBootstrap5 JumbotronBootstrap5 AlertsBootstrap5 ButtonsBootstrap5 Button GroupsBootstrap5 BadgesBootstrap5 Progress BarsBootstrap5 SpinnersBootstrap5 PaginationBootstrap5 List GroupsBootstrap5 CardsBootstrap5 DropdownsBootstrap5 CollapseBootstrap5 NavsBootstrap5 NavbarBootstrap5 CarouselBootstrap5 ModalBootstrap5 TooltipBootstrap5 PopoverBootstrap5 ToastsBootstrap5 ScrollspyBootstrap5 OffcanvasBootstrap5 UtilitiesBootstrap5 Flex Layout
Bootstrap5 Forms
Bootstrap5 FormsBootstrap5 SelectBootstrap5 Checkbox and RadioBootstrap5 RangeBootstrap5 Input GroupBootstrap5 Floating LabelsBootstrap5 Form Validation
Explore Further
Scripting
Programming
Web Services
Development Tools
Web Service
Scripting Languages
Web Design and Development
Programming Languages
Software
Computer Science
Bootstrap5 Range
To create a range slider, add type="range" to the input element and use the .form-range class:
Range:
![Image 2]()
Example
<label for="customRange" class="form-label">Custom range</label>
<input type="range" class="form-range" id="customRange">
Step
By default, the step is 1. You can set it using the step attribute:
Example
<input type="range" class="form-range" step="10">
Min and Max Values
By default, the minimum value is 0 and the maximum value is 100. You can set them using the min or max attributes:
Example
<input type="range" class="form-range" min="0" max="4">
Click to Share Notes
<label for="customRange" class="form-label">Custom range</label>
<input type="range" class="form-range" id="customRange"><input type="range" class="form-range" step="10"><input type="range" class="form-range" min="0" max="4">
YouTip