Problem Statement
Which attribute marks an element as a tooltip trigger in Bootstrap 5?
Explanation
Add data-bs-toggle='tooltip' to the element and provide a title for the text you want displayed. Initialize tooltips with JavaScript to make them functional.
Code Solution
SolutionRead Only
const btn = document.querySelector('[data-bs-toggle="tooltip"]');
new bootstrap.Tooltip(btn);