Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <div class="container-fluid"> <div id="faq" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="questionOne"> <h5 class="panel-title"> <a data-toggle="collapse" data-parent="#faq" href="#answerOne" aria-expanded="false" aria-controls="answerOne"> Question 1 </a> </h5> </div> <div id="answerOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="questionOne"> <div class="panel-body"> Answer 1... </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="questionTwo"> <h5 class="panel-title"> <a class="collapsed" data-toggle="collapse" data-parent="#faq" href="#answerTwo" aria-expanded="false" aria-controls="answerTwo"> Question 2 </a> </h5> </div> <div id="answerTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="questionTwo"> <div class="panel-body"> Answer 2... </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="questionThree"> <h5 class="panel-title"> <a class="collapsed" data-toggle="collapse" data-parent="#faq" href="#answerThree" aria-expanded="true" aria-controls="answerThree"> Question 3 </a> </h5> </div> <div id="answerThree" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="questionThree"> <div class="panel-body"> Answer 3... </div> </div> </div> </div> </div> <!-- jQuery library --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- Bootstrap JS --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <!-- Initialize Bootstrap functionality --> <script> // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) </script>