Which Bootstrap component is used to create a modal dialog box?
- Alert
- Modal
- Popover
- Tooltip
The correct answer is 'Modal.' The Modal component in Bootstrap is used to create a modal dialog box that is displayed on top of the current page. Modals are often used for displaying additional content, forms, or interactive elements. To use a modal, you need to create a
with the class 'modal' and use JavaScript to control its display.
Loading...
Related Quiz
- To alter the default transition duration for various components, adjust the ___ variable.
- To handle the closing event of a Bootstrap modal, the event name is '___'.
- If you're designing a complex form with multiple sections in Bootstrap, how would you structure the layout for clarity and accessibility?
- What is the significance of the 'data-placement' attribute in Bootstrap Tooltips?
- How would you implement a modal form that validates input before closing in Bootstrap?