When creating a custom Bootstrap component, how is the 'data-' attribute used?
- Utilized for styling purposes
- Reserved for JavaScript functions
- To store custom data attributes
- Not applicable
In Bootstrap, the 'data-' attribute is used to store custom data attributes, providing a way to associate extra information with HTML elements. This is often used for JavaScript-related functionality or custom data storage.
Loading...
Related Quiz
- How would you use utility classes to create a responsive layout with different paddings on various devices?
- What is the primary purpose of using modals in Bootstrap?
- How does the Bootstrap grid system utilize the 'col-md-' class in its layout?
- The '___()' JavaScript method is utilized for dynamically loading content into a Bootstrap modal.
- Which Bootstrap utility class is used to apply a simple hover effect to a button?