x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<!-- Latest compiled and minified Bootstrap CSS -->
5
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
6
7
<style>
8
body {
9
padding-top: 1em;
10
}   
11
</style> <div class="container-fluid">
12
        
13
<div id="faq" role="tablist" aria-multiselectable="true">
14
15
<div class="card">
16
<div class="card-header" role="tab" id="questionOne">
17
<h5 class="card-title">
18
<a data-toggle="collapse" data-parent="#faq" href="#answerOne" aria-expanded="true" aria-controls="answerOne">
19
What if my boots are too big for my feet?
20
</a>
21
</h5>
22
</div>
23
<div id="answerOne" class="collapse show" role="tabcard" aria-labelledby="questionOne">
24
<div class="card-body">
25
Stuff your boots with newspaper or tissue.
26
</div>
27
</div>
28
</div>
29
30
<div class="card">
31
<div class="card-header" role="tab" id="questionTwo">
32
<h5 class="card-title">
33
<a class="collapsed" data-toggle="collapse" data-parent="#faq" href="#answerTwo" aria-expanded="false" aria-controls="answerTwo">
34
Can I wear my boots inside?
35
</a>
36
</h5>
37
</div>
38
<div id="answerTwo" class="collapse" role="tabcard" aria-labelledby="questionTwo">
39
<div class="card-body">
40
No. Your mama should've told you about this.
41
</div>
42
</div>
43
</div>
44
45
<div class="card">
46
<div class="card-header" role="tab" id="questionThree">
47
<h5 class="card-title">
48
<a class="collapsed" data-toggle="collapse" data-parent="#faq" href="#answerThree" aria-expanded="true" aria-controls="answerThree">
49
What if my boots get slippery when wet?
50
</a>
51
</h5>
52
</div>
53
<div id="answerThree" class="collapse in" role="tabcard" aria-labelledby="questionThree">
54
<div class="card-body">
55
Keep your boots dry.
56
</div>
57
</div>
58
</div>
59
60
</div>
61
62
</div>
63
        
64
<!-- jQuery library -->
65
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
66
67
<!-- Popper -->
68
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
69
70
<!-- Latest compiled and minified Bootstrap JavaScript -->
71
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
72
73
<!-- Initialize Bootstrap functionality -->
74
<script>
75
// Initialize tooltip component
76
$(function () {
77
  $('[data-toggle="tooltip"]').tooltip()
78
})
79
80
// Initialize popover component
81
$(function () {
82
  $('[data-toggle="popover"]').popover()
83
})
84
</script>