Here's an example of adding Frequently Asked Questions (FAQs) in the footer section of a website using Bootstrap.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- Custom CSS -->
<style>
/* Customize your styles here */
/* Example CSS */
footer {
background-color: #f8f9fa;
padding: 50px 0;
}
footer h4 {
margin-bottom: 30px;
}
footer .accordion {
margin-bottom: 20px;
}
footer .card {
border: none;
}
footer .card-header {
background-color: #fff;
border: none;
padding: 0;
}
footer .card-header a {
display: block;
padding: 10px 20px;
font-weight: bold;
color: #333;
}
footer .card-body {
padding: 0 20px;
background-color: #fff;
}
footer .card-body p {
margin-bottom: 0;
}
</style>
</head>
<body>
<!-- Your website content -->
<!-- Footer Section -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-12">
<h4>Frequently Asked Questions</h4>
<div class="accordion" id="faqAccordion">
<div class="card">
<div class="card-header" id="headingOne">
<a href="#" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">Question 1</a>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#faqAccordion">
<div class="card-body">
<p>Answer 1</p>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<a href="#" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Question 2</a>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#faqAccordion">
<div class="card-body">
<p>Answer 2</p>
</div>
</div>
</div>
<!-- Add more FAQ cards here -->
</div>
</div>
</div>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></scrip
t>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
In this example, I've added a footer section with an FAQ component. The FAQ section uses the Bootstrap accordion component to show and hide the answers for each question.
You can customize the questions and answers by adding more `card` elements within the `accordion` container.
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc