Popover & Tooltip Demo
Buttons demonstrating Bootstrap popovers and tooltips via the API.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="d-flex gap-2"><button class="btn btn-primary" id="pvBtn" data-bs-toggle="popover" data-bs-title="Popover" data-bs-content="This is popover content.">Popover</button><button class="btn btn-outline-secondary" id="ttBtn" data-bs-toggle="tooltip" data-bs-title="Tooltip text!">Tooltip</button></div>new bootstrap.Popover(document.getElementById("pvBtn"));new bootstrap.Tooltip(document.getElementById("ttBtn"));Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.