<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h3>Bootstrap 4 Tooltip</h3>
  <p>Thay các giá trị vào data-placement để chỉnh vị trí các tooltip.</p>
  <a href="#" data-toggle="tooltip" data-placement="top" title="Đây là Tooltip Top!">Top</a>
  <a href="#" data-toggle="tooltip" data-placement="bottom" title="Đây là Tooltip bottom!">Bottom</a>
  <a href="#" data-toggle="tooltip" data-placement="left" title="Đây là Tooltip left!">Left</a>
  <a href="#" data-toggle="tooltip" data-placement="right" title="Đây là Tooltip right!">Right</a>
</div>

</body>
</html>
$(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip();   
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.