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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *