sudhakarinfotech
(current)
Run Code
Live Code Editor- Bootstrap 4 Tooltip
Source Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Bootstrap 4 Tooltip</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" /> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js"></script> </head> <body> <div class="container text-center mt-4"> <h1 class="text-center">Bootstrap 4 Tooltip</h1> <p class="text-center">Basically, tooltip is a small popup box that displays information after pointing mouse pointer to the element such as link or button</p> <a href="#" data-toggle="tooltip" title="Learn Bootstrap"> Hover over me </a> </div> <!--/container--> <script type="text/javascript"> $(document).ready(function () { $('[data-toggle="tooltip"]').tooltip(); }); </script> </body> </html>
Source Code Output :
Running