1<!-- Bootstrap button Tooltip
2You can look here for in depth info:
3https://getbootstrap.com/docs/4.0/components/tooltips/
4
5OR use the bellow example : -->
6<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
7 Tooltip on top
8</button>
1<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
2 Tooltip on top
3</button>
4<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
5 Tooltip on right
6</button>
7<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">
8 Tooltip on bottom
9</button>
10<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="left" title="Tooltip on left">
11 Tooltip on left
12</button>
13<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-html="true" title="<em>Tooltip</em> <u>with</u> <b>HTML</b>">
14 Tooltip with HTML
15</button>
1<!--
2A tooltip is use to specify extra information about something when user moves cursor over an HTML element.
3-->
4
5<!DOCTYPE html>
6<html>
7<style>
8.tooltip {
9 position: relative;
10 display: inline-block;
11 border-bottom: 1px dotted black;
12}
13
14.tooltip .tooltiptext {
15 visibility: hidden;
16 width: 120px;
17 background-color: black;
18 color: #fff;
19 text-align: center;
20 border-radius: 6px;
21 padding: 5px 0;
22 position: absolute;
23 z-index: 1;
24 bottom: 150%;
25 left: 50%;
26 margin-left: -60px;
27}
28
29.tooltip .tooltiptext::after {
30 content: "";
31 position: absolute;
32 top: 100%;
33 left: 50%;
34 margin-left: -5px;
35 border-width: 5px;
36 border-style: solid;
37 border-color: black transparent transparent transparent;
38}
39
40.tooltip:hover .tooltiptext {
41 visibility: visible;
42}
43</style>
44<body style="text-align:center;">
45
46<div class="tooltip">Hover over me
47 <span class="tooltiptext">Tooltip text</span>
48</div>
49
50</body>
51</html>
52
53<!--
54I Hope it will help you.
55Namaste
56Stay Home Stay Safe
57-->
1<!-- Bootstrap 5 Tooltips -->
2<button
3 type="button"
4 class="btn btn-secondary"
5 data-bs-toggle="tooltip"
6 data-bs-placement="top"
7 title="Tooltip on top"
8>
9 Tooltip on top
10</button>
11<button
12 type="button"
13 class="btn btn-secondary"
14 data-bs-toggle="tooltip"
15 data-bs-placement="right"
16 title="Tooltip on right"
17>
18 Tooltip on right
19</button>
20<button
21 type="button"
22 class="btn btn-secondary"
23 data-bs-toggle="tooltip"
24 data-bs-placement="bottom"
25 title="Tooltip on bottom"
26>
27 Tooltip on bottom
28</button>
29<button
30 type="button"
31 class="btn btn-secondary"
32 data-bs-toggle="tooltip"
33 data-bs-placement="left"
34 title="Tooltip on left"
35>
36 Tooltip on left
37</button>