What attribute needs to be set in the HTML to target the element ScrollSpy is applied to?
- data-spy
- data-target
- data-scroll
- data-offset
The attribute that needs to be set in the HTML to target the element ScrollSpy is applied to is data-target. This attribute specifies the target element or navigation bar that ScrollSpy should update based on the scroll position.
Loading...
Related Quiz
- Explain the process of designing a navigation bar in Bootstrap that dynamically updates links based on user authentication status.
- The Bootstrap CSS class '___' works in tandem with Bootstrap JS to create a responsive navbar.
- Describe how the box model can affect cross-browser layout consistency.
- In jQuery, $('___').tooltip() is used to initialize Bootstrap tooltips on specific elements.
- ___ splitting is a technique used to load JavaScript code more efficiently.