To use ScrollSpy, the ___ attribute must be set on the body or the parent element.
- data-target
- data-spy
- data-offset
- data-toggle
The correct attribute is data-target. It is used to specify the target element or navigation bar that the ScrollSpy should track.
Loading...
Related Quiz
- Which Bootstrap component is used to create a modal dialog box?
- Explain the impact of using CSS inheritance to override Bootstrap styles on responsive design.
- What is the maximum number of columns available in a Bootstrap grid system?
- The Bootstrap class '___-responsive' ensures dynamic resizing of tables.
- Bootstrap cards can be organized into a responsive grid layout using the '___' class.