Which attribute is used to enable the lightbox feature for images in Bootstrap 5?
-
A
data-bs-toggle
-
B
data-bs-target
-
C
data-bs-lightbox
Correct answer
-
D
data-bs-modal
Correct answer
C. data-bs-lightbox
15 views
Explanation
Explanation: <img src="image.jpg" data-bs-lightbox="gallery">
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ