Which class is used to create a tooltip in Bootstrap?
Correct answer
B. .tooltip
13 views
B. .tooltip
13 views
.tooltip is the class Bootstrap applies to tooltip elements. In practice you add data-bs-toggle="tooltip" and a title to an element and initialise tooltips with JavaScript, because they are opt-in for performance.
A popover is a related but larger component with a title and body.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.