Bootstrap-Top 50-Interview-Questions-Answers-Pdf-Version
Bootstrap-Top 50-Interview-Questions-Answers-Pdf-Version
Bootstrap
Top 55 Interview
Questions Answers
With Explanations
About ARC Tutorials
ARC Tutorials is a leading Technology content publishing house and has a strong community
over 50k patrons.
We specialize in Web Development, Testing, DevOps and Many more latest technologies.
Disclaimer
All the content is protected by copyright laws. None of the contents of the book can be copied,
circulated or published without copyright information. Legal actions will be initiated against
anyone found guilty and all costs will be beared by the violator.
Bootstrap 5 Full Tutorials
Bootstrap 5 Complete Tutorial Playlist
Around 40 hands-on tutorials and live examples
https://www.youtube.com/playlist?list=PLp50dWW_m40UvCxL8K83_DotLYiG4mDcM
https://www.youtube.com/arctutorials
Bootstrap is a HTML, CSS, and JS framework for building the rich web
applications with minimal effort.
Bootstrap is a front-end framework that is used for creating HTML, CSS, and
JS web applications. Its layout is very responsive, easy and fast to use.
Bootstrap?
Some of the components that require JavaScript are shown in the below list:
They are:
Bootstrap container is a class which is useful and creates a centred area within the page
where our site content can be put within.
It behaves like a container where you can put HTML code, and it is a part within the page
where the content of the site can be placed to make it responsive and fast.
The advantage of the bootstrap .container is that it is responsive and will place all our
other HTML code.
in Bootstrap?
In Bootstrap there are two types of Layout available
• Fluid Layout: Fluid layout is used when you want to create a app that is 100%
wide and use up all the width of the screen
• Fixed Layout: For a standard screen you will use fixed layout (940 px) option
BootStrap
Fluid Layout is useful when you need to make an app which involves the full width of the
screen i.e. Fluid Layout adjusts itself according to the browser size.
The .container-fluid class provides a full width container, spanning the entire width of the
viewport
Fixed layout is responsive but cannot adjust itself according to the browser size.
Bootstrap sets a basic global display (background), typography, and link styles.
The Bootstrap Grid System is a mobile-first, responsive grid system that scales up to 12 columns as
the device or viewport size grows.
Predefined classes for quick layout options and powerful mix-ins for creating successful semantic
layouts are included in the system.
Bootstrap’s grid system can adapt across all six default breakpoints, and any breakpoints you
customize. The six default grid tiers are as follows:
● Extra small (xs) -> col-xs
● Small (sm) -> col-sm
● Medium (md) -> col-md
● Large (lg) -> col-lg
● Extra large (xl) -> col--xl
● Extra extra large (xxl) -> col-xxl
Get the Interview Questions Answers as PDF copy at https://arctutorials.gumroad.com
© ARC Tutorials
What are offset columns in Bootstrap?
Column Offsetting: Column offsetting is used to move or push a column from its
original position to a specified width or space.
To implement column offsetting we use the ‘.col-md-n’ class with ‘.offset-md-n’ class
which pushes column by n columns.
<div class="container text-center">
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4 offset-md-4">.col-md-4 .offset-md-4</div>
</div>
<div class="row">
<div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div>
<div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div>
</div>
<div class="row">
<div class="col-md-6 offset-md-3">.col-md-6 .offset-md-3</div>
</div>
</div>
Get the Interview Questions Answers as PDF copy at https://arctutorials.gumroad.com
© ARC Tutorials
What is column ordering in Bootstrap?
We can arrange the visual order of the content. For responsive, we can use order-md-1
<div class="container text-center">
<div class="row">
<div class="col order-last">
First in DOM, ordered last
</div>
<div class="col">
Second in DOM, unordered
</div>
<div class="col order-first">
Third in DOM, ordered first
</div>
</div>
Get the Interview Questions Answers as PDF copy at https://arctutorials.gumroad.com
</div>
How can you display code in © ARC Tutorials
Bootstrap?
You can display code in two ways.
They are:
● Using the <code> tag – This method is used to display code as inline code.
● Using the <pre> tag – This method is used to display code as a standalone block.
settings?
The default font size in Bootstrap 4 is 16px, with a line-height of 1.5.
The default font family is "Helvetica Neue," which includes Helvetica, Arial, and other
sans-serif fonts.
Margin-top: 0 and margin-bottom: 1rem are also set on all <p> elements (16px by
default).
pagination in Bootstrap?
The classes used for pagination are the
• .pagination
• .page-item
• .page-link
• .pagination-sm
• .pagination-lg
• .active
• .disabled
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
Get the Interview Questions Answers as PDF copy at https://arctutorials.gumroad.com
© ARC Tutorials
Explain input groups in Bootstrap
Further, you can use the .input-group-sm class to make a small input group and the
.input-group-lg class to make a large input group.
navigation menu?
We can create a tabbed navigation menu by making a basic unordered list with the .nav
base class and the .nav-tabs class.
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled">Disabled</a>
</li>
</ul>
• In the mobile view, the navbar collapses and becomes horizontal as the available
viewport width increases.
Multiple buttons can be placed together on a single line using button groups. You can
use this to group objects together, such as alignment buttons.
</button>
in Bootstrap?
• Add the .img-fluid class to the <img> tag to make an image responsive.
• It applies the styles, .max-width: 100% and height: auto.
• So it can match nicely with the parent element.
Push notifications to your visitors with a toast, a lightweight and easily customizable
alert message.
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<img src="..." class="rounded me-2" alt="...">
<strong class="me-auto">Bootstrap</strong>
<small>11 mins ago</small>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
Hello, world! This is a toast message.
</div>
</div>
Create a wrapper <div> and add a class of .alert and one of the contextual classes to
create a basic alert (e.g., .alert-success, .alert-info, .alert-warning, .alert-danger,
.alert-primary, .alert-secondary, .alert-light or .alert-dark).
</div>
It has options for headers, footers, content, and colors, among other things.
<div class="card" style="width: 18rem;">
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
1. Spinner Border
2. Spinner Grow
Use the .spinner-border class to make a spinner/loader.
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom
selects, and custom file inputs.
in Bootstrap?
To implement custom media queries in Bootstrap we can implement the below code:
There are lots of alternatives. Some of them are shown in the below list.
● Foundation
● Bulma
● Materialize
● Material Design Lite
● Skeleton
● Pure CSS
● Semantic UI
● Uikit
Bootstrap?
In bootstrap there are seven styles which we can use with the bootstrap button.
● .btn-default.
● .btn-primary
● .btn-success
● .btn-info
● .btn-warning.
● .btn-danger.
● .btn-link.
Progress bar is used with HTML tag style in HTML element using progress keyword.
In bootstrap we used html5 progress with CSS classes that have special features in
bootstrap, that is only made for the progress bar.
• Toggle the visibility of content across your project with a few classes and our
JavaScript plugins.
• Acts like accordion style collapse / show or hide
<button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false"
aria-controls="collapseExample">
</button>
Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.
</div>
</div>
Gutters are the padding between your columns, used to responsively space and align content in the Bootstrap
grid system.
Gutters can be responsively adjusted. Use breakpoint-specific gutter classes to modify horizontal gutters, vertical
gutters, and all gutters
settings?
The default font size in Bootstrap 4 is 16px, with a line-height of 1.5.
The default font family is "Helvetica Neue," which includes Helvetica, Arial, and other
sans-serif fonts.
Margin-top: 0 and margin-bottom: 1rem are also set on all <p> elements (16px by
default).
Bootstrap.
1. Ordered lists − An ordered list is a list that falls in some sort of sequential order and is prefaced by numbers.
2. Unordered lists − An unordered list is a list that doesn’t have any particular order and is traditionally styled
with bullets. If you do not want the bullets to appear then you can remove the styling by using the class
.list-unstyled.
3. Definition lists − In this type of list, each list item can consist of both the <dt> and the <dd> elements. <dt>
stands for definition term. Subsequently, the <dd> is the definition of the <dt>.
a. Start with a basic unordered list with the .nav base class
a. Start with a basic unordered list with the .nav base class
Create beautifully simple form labels that float over your input fields.
</div>
<div class="form-floating">
<label for="floatingPassword">Password</label>
</div>
• Provide valuable, actionable feedback to your users with HTML5 form validation, via browser default
• HTML form validation is applied via CSS’s two pseudo-classes, :invalid and :valid. It applies to <input>,
<select>, and <textarea> elements.
<form class="row g-3 needs-validation" novalidate>
<div class="col-md-4">
<label for="validationCustomUsername" class="form-label">Username</label>
<div class="input-group has-validation">
<span class="input-group-text" id="inputGroupPrepend">@</span>
<input type="text" class="form-control" id="validationCustomUsername" aria-describedby="inputGroupPrepend" required>
<div class="invalid-feedback">
Please choose a username.
</div>
</div>
</div>
</form>
Get the Interview Questions Answers as PDF copy at https://arctutorials.gumroad.com
© ARC Tutorials
Explain Range in Bootstrap Forms?
• Use our custom range inputs for consistent cross-browser styling and built-in customization.
• Create custom <input type="range"> controls with .form-range. The track (the background) and thumb (the
• Anytime you need to display a piece of content—like an image with an optional caption, consider using a
<figure>
• Use the included .figure, .figure-img and .figure-caption classes to provide some baseline styles for the
<figure class="figure">
<img src="..." class="figure-img img-fluid rounded" alt="...">
<figcaption class="figure-caption">A caption for the above image.</figcaption>
</figure>
• While not a part of Bootstrap’s grid system, z-indexes play an important part in how our components overlay
• To handle overlapping borders within components (e.g., buttons and inputs in input groups), Bootstrap use
low single digit z-index values of 1, 2, and 3 for default, hover, and active states.
• On hover/focus/active, Bootstrap bring a particular element to the forefront with a higher z-index value to
• Build hidden sidebars into your project for navigation, shopping carts, and more with a few classes and our
JavaScript plugin.
• Offcanvas is a sidebar component that can be toggled via JavaScript to appear from the left, right, top, or
bottom edge of the viewport. Buttons or anchors are used as triggers that are attached to specific elements
you toggle, and data attributes are used to invoke our JavaScript.
• We can use loading placeholders for your components or pages to indicate something may still be loading.
• Quickly and easily clear floated content within a container by adding a clearfix utility.
• Easily clear floats by adding .clearfix to the parent element. Can also be used as a mixin.
<div class="clearfix">...</div>
• Tooltips rely on the third party library Popper for positioning. You must include popper.min.js before
bootstrap.js, or use one bootstrap.bundle.min.js which contains Popper.
• Tooltips are opt-in for performance reasons, so you must initialize them yourself.
• Tooltips with zero-length titles are never displayed.
Bootstrap
Thank you. All the best.
Get PDF copy at https://arctutorials.gumroad.com