Bootstrap snippet and html example. Faqs frequently asked questions with tabs

Bootstrap 5.1.3 snippet "Faqs frequently asked questions with tabs" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: faqs

HTML code

Clean, semantic HTML that powers this Bootstrap 5.1.3 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container">
<div class="row">
      <div class="col-lx-12">
          <div class="card">
              <div class="card-body">
                <div class="row justify-content-center mt-4">
                    <div class="col-xl-5 col-lg-8">
                        <div class="text-center">
                            <h3>Frequently Asked Questions?</h3>
                            <p class="text-muted">If several languages coalesce, the grammar of the resulting language
                                is more simple and regular than that of the individual</p>
                            <div>
                                <button type="button" class="btn btn-primary me-2">Email Us</button>
                                <button type="button" class="btn btn-success">Send us a tweet</button>
                            </div>
                        </div>
                    </div>
                    <!-- end col -->
                </div>
                <!-- end row -->
                <div class="row justify-content-center mt-5">
                    <div class="col-9">
                        <ul class="nav nav-tabs  nav-tabs-custom nav-justified justify-content-center faq-tab-box" id="pills-tab" role="tablist">
                            <li class="nav-item" role="presentation">
                                <button class="nav-link active" id="pills-genarel-tab" data-bs-toggle="pill" data-bs-target="#pills-genarel" type="button" role="tab" aria-controls="pills-genarel" aria-selected="true">
                                    <span class="font-size-16">General Questions</span>
                                </button>
                            </li>
                            <li class="nav-item" role="presentation">
                                <button class="nav-link" id="pills-privacy_policy-tab" data-bs-toggle="pill" data-bs-target="#pills-privacy_policy" type="button" role="tab" aria-controls="pills-privacy_policy" aria-selected="false">
                                    <span class="font-size-16">Privacy Policy</span>
                                </button>
                              </li>
                              <li class="nav-item" role="presentation">
                                <button class="nav-link" id="pills-teachers-tab" data-bs-toggle="pill" data-bs-target="#pills-pricing_plan" type="button" role="tab" aria-controls="pills-pricing_plan" aria-selected="false">
                                    
                                    <span class="font-size-16">Pricing &amp; Plans</span>
                                </button>
                              </li>
                          </ul>
                    </div>
                    <div class="col-lg-9">
                        <div class="tab-content pt-3" id="pills-tabContent">
                            <div class="tab-pane fade active show" id="pills-genarel" role="tabpanel" aria-labelledby="pills-genarel-tab">
                                <div class="row g-4 mt-2">
                                    <div class="col-lg-6">
                                        <h5>What is Lorem Ipsum ?</h5>
                                    <p class="text-muted">If several languages coalesce, the grammar of the resulting language is more simple 
                                        and regular than that of the individual languages. The new common language will be more simple and 
                                        regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>Why do we use it ?</h5>
                                        <p class="text-muted">Their separate existence is a myth. For science, music, sport, etc, 
                                            Europe uses the same vocabulary.</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>Where does it come from ?</h5>
                                    <p class="text-muted">If several languages coalesce, the grammar of the resulting language is more simple 
                                        and regular than that of the individual languages. The new common language will be more simple and 
                                        regular than the existing
                                    </p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>Where can I get some?</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more 
                                            simple and regular than that of the individual languages. </p>
                                    </div>
                                </div>
                            </div>

                            <div class="tab-pane fade" id="pills-privacy_policy" role="tabpanel" aria-labelledby="pills-privacy_policy-tab">
                                <div class="row g-4 mt-2">
                                    <div class="col-lg-6">
                                        <h5>Where can I get some ?</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple
                                            and regular than that of the individual languages. The new common language will be more
                                            simple and regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>Where does it come from ?</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple
                                            and regular than that of the individual languages. The new common language will be more
                                            simple and regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>Why do we use it ?</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple
                                            and regular than that of the individual languages. The new common language will be more
                                            simple and regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>What is Genius privacy policy</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple
                                            and regular than that of the individual languages. The new common language will be more
                                            simple and regular than the existing</p>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="pills-pricing_plan" role="tabpanel">
                                <div class="row g-4 mt-4">
                                    <div class="col-lg-6">
                                        <h5>Where does it come from ?</h5>
                                    <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple
                                        and regular than that of the individual languages. The new common language will be more
                                        simple and regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>Why do we use it ?</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple
                                            and regular than that of the individual languages. The new common language will be more
                                            simple and regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>What is Lorem Ipsum ?</h5>
                                    <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple 
                                        and regular than that of the individual languages. The new common language will be more 
                                        simple and regular than the existing</p>
                                    </div>
                                    <div class="col-lg-6">
                                        <h5>What is Lorem Ipsum?</h5>
                                        <p class="lg-base">If several languages coalesce, the grammar of the resulting language is more simple 
                                            and regular than that of the individual languages. The new common language will be more 
                                            simple and regular than the existing</p>
                                    </div>
                                </div>
                            </div>
                          </div>
                    </div>
                </div>
                <!-- end row -->
              </div>
          </div>
      </div>
  </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 5.1.3 to keep the design, spacing, and responsiveness consistent.

body{
    background-color:#eee;
    margin-top:20px;
}
.card {
    box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
}
.nav-tabs-custom .nav-item .nav-link.active {
    color: #6c6ff5;
}
.nav-tabs-custom .nav-item .nav-link {
    border: none;
}
.text-muted {
    color: #8ca3bd!important;
}
.nav-tabs-custom .nav-item {
    position: relative;
    color: #271050;
}
.nav-tabs-custom .nav-item .nav-link.active:after {
    -webkit-transform: scale(1);
    transform: scale(1);
}
.nav-tabs-custom .nav-item .nav-link::after {
    content: "";
    background: #6c6ff5;
    height: 2px;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -1px;
    -webkit-transition: all 250ms ease 0s;
    transition: all 250ms ease 0s;
    -webkit-transform: scale(0);
    transform: scale(0);
}

Similar snippets

Bootstrap example and template. Support center

Support center

Bootstrap example and template. faqs page

faqs page

Bootstrap example and template. Frequently Asked Questions

Frequently Asked Questions

Bootstrap example and template. support topic and categories

support topic and categories

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. Dashboard user count colored circle image

Dashboard user count colored circle image

Bootstrap example and template. User profile with post list

User profile with post list

Bootstrap example and template. page services

page services

FAQ

How do I use this snippet?

Include Bootstrap 5.1.3, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 5.1.3.

Bootstrap example and template. Faqs frequently asked questions with tabs

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 12.0K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 5.1.3

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 5.1.3 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working