What is the purpose of the 'data-parent' attribute in Bootstrap's accordion component?
- It defines the parent accordion container
- It specifies the parent element to be collapsed
- It sets the accordion's parent ID
- It controls the accordion's nesting level
The 'data-parent' attribute in Bootstrap's accordion component is used to specify the parent element to be collapsed when a particular accordion item is expanded. This attribute helps in creating a hierarchical structure for accordion items, allowing you to control the accordion's behavior in relation to its parent elements.
Loading...
Related Quiz
- Bootstrap's ___ feature can be leveraged to add interactive functionality to custom components.
- Which Bootstrap component is most commonly used to show or update data dynamically with AJAX?
- What event is triggered when a Bootstrap modal is fully shown?
- What are the best practices for ensuring accessibility in dynamically generated Bootstrap content?
- To create a bouncing animation in Bootstrap, use the class '___'.