Problem Statement
Which attribute connects a button to a modal by its id?
Explanation
Use data-bs-target to link the button with the modal id, and set data-bs-toggle to 'modal' to activate it. Together they open the correct modal when clicked.
Code Solution
SolutionRead Only
<button class='btn btn-primary' data-bs-toggle='modal' data-bs-target='#myModal'>Open</button>
