Bootstrap Interview Question in PDF

In this article most frequently asked questions about the Bootstrap interview and we have included a list of the most popular questions and answers for the Bootstrap interview.

Below are the list of Best Bootstrap Interview Questions

Que. What is bootstrap? Explain

Que. Why is Bootstrap used for mobile web development?

Que: Explain why choosing Bootstrap to build the websites?

Que: What are the key components of Bootstrap?

Que: Why Use Bootstrap?

Bootstrap Interview Question PDF

Get the latest and most frequent questions and answers about the bootstrap interview for the experience

PDF Download Link Below

Bootstrap Interview Questions PDF

Que: What do you understand by Bootstrap container?

Que: How many types of designs are in Bootstrap? or What are the types of design available in Bootstrap?

Que: What is the Bootstrap grid system? Explain

Que: What are grid classes in Bootstrap?

Que: Please explain about offset columns in Bootstrap?

Que: What is Jumbotron in Bootstrap for?

Que: Explain what Bootstrap collapsing elements are?

Que: What explains Bootstrap well?

Que: How can we make the image respond in Bootstrap?

Bootstrap Interview Questions and Answers PDF

Bootstrap Interview Questions PDF

Download Top Best Bootstrap Interview Question with Answer in PDF

Bootstrap 4 is the latest version of Bootstrap, which is the most popular HTML, CSS and JavaScript framework for developing responsive and mobile websites first. Bootstrap 4 is completely free to download and use!

Bootstrap 4 Source CSS files converted to SCSS.

Bootstrap 4 has 5 grid systems (.col-, .col-sm-3, .col-md-3, .col-lg-3, .col-xl-3). Bootstrap 4 has removed the x from the lowest break point. Therefore, (col-) covers all devices.

Bootstrap 4 has changed the offset class (offset-md-4)

Difference Between Bootstrap 4 and Bootstrap Image Responsive

Bootstrap 3 Image: .In Bootstrap 3 we are used this (.img-responsive) class for responsive image.
Bootstrap 4 Image: it has changes the class for responsive image (.img-fluid).

Bootstrap 4 Form Control

Bootstrap 4 has changed to (.form-control-lg) and (.form-control-sm) to increase and decrease the input size. Bootstrap 4 has add, delete and rename classes.

Why use Bootstrap 4?

  • It’s open source
  • Easy to get started
  • Great grid systems
  • Responsiveness
  • Mobile First
  • Consistency
  • Browser support

Using CDN

<!-- Compiled and Minified Bootstrap4 CSS -->
<link rel = "stylesheet" 
   href = ""
   integrity = "sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" 
   crossorigin = "anonymous">

<!-- jQuery Library -->
<script src = "" 
   integrity = "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 
   crossorigin = "anonymous">

<!-- Popper -->
<script src = "" 
   integrity = "sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" 
   crossorigin = "anonymous">

<!-- Compiled and Minified Bootstrap4 JavaScript -->
<script src = "" 
   integrity = "sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" 
   crossorigin = "anonymous">
bootstrap 4

Bootstrap is an HTML, CSS and JS framework for creating rich web applications with minimal effort. This framework emphasizes more in the construction of mobile web applications.

In other word Bootstrap is a front-end framework that is used to create HTML, CSS and JS web applications. Its design is very sensitive, easy and quick to use.

It mainly focuses on creating a mobile application with design templates to create UI as drop-down menu, forms, buttons, alerts tab, etc.

Why Use Bootstrap?

  • Easy to use: Anyone with basic knowledge of HTML and CSS can start using Bootstrap
  • Responsive Features: Bootstrap’s responsive CSS adjusts on phones, tablets, and desktops
  • Mobile-first approach: In Bootstrap, mobile-first styles are part of the core framework
  • Browser Compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Edge, Safari and Opera)

key components of Bootstrap.

  • Scaffolding: it has the grid system, background, styles/ link styles .
  • JS Add-ons and JavaScript Plugins : contains JS and jQuery add-ons and many jQuery and JavaScript plugins .
  • Customize: you can customize frames or To get your own version of framework .
  • CSS: contains CSS files or with plenty of CSS files .
what is Bootstrap

Example: The following example shows the code of a basic bootstrap page

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap Example for You</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>

<div class="container">
  <h1>My First Bootstrap Page Heading</h1>
  <p>This is paragraph text.</p>


If we want to represent the same thing in HTML 4 with proper names of the HTML section, we would probably use a DIV tag.

But in HTML 5 they have made it clearer by creating element names for those sections, which makes their HTML more readable.

Below the details of the HTML 5 elements which form the page structure.

  • <header>: Represents header data of HTML.
  • <footer>: Footer section of the page.
  • <nav>: Navigation elements in the page.
  • <article>: Self-contained content.
  • <section>: Used inside article to define sections or group content in to sections.
  • <aside>: Represent side bar contents of a page.

What is HTML5?

In this article HTML 5 of the hypertext markup language (HTML5) is a markup language for the structure and presentation of World Wide Web (www) content. HTML5 supports traditional HTML and XHTML style syntax and other new features in its markup, New APIs, XHTML and error handling.

In this article HTML5 is the latest version of the hypertext markup language, the code that describes web pages. Actually, there are three types of code: HTML, which provides the structure; Cascading style sheets (CSS), which handle the presentation; and JavaScript, which makes things happen.

The new HTML5 features include:

  • New analysis rules that are not based on SGML but are geared towards flexible analysis and compatibility.
  • Support for online scalar vector graphics (SVG) and mathematical markup language (MathML) in text / html.
  • The new elements available include article, apart, audio, bdi, canvas, command, datalist, details, embedding, figcaption, figure, footer, header, hgroup, keygen, mark, meter, nav, output, progress, rp, rt , ruby, section, source, summary, time, video and wbr.
  • The new available types of form controls include dates and times, email, url, search, number, range, phone and color.
  • New attributes available from charset in meta and async in script.
  • Global attributes that can be applied for each element that includes id, tabindex, hidden, data- * or customer data attributes.

Syntax of Doctype:

<!DOCTYPE html>
<title>Page Title</title>

<h1>My First Heading</h1>
<p>My paragraph.</p>


Description of the HTML example …

<!doctype>: defines the type of document or instructs the browser about the HTML version.

<html>: This tag informs the browser that it is an HTML document. The text between the html tag describes the web document. It is a container for all other HTML elements except

<head>: must be the first element within the element, which contains the metadata (information about the document). It must be closed before the body tag is opened.

<title>: As the name suggests, it is used to add the title of that HTML page that appears at the top of the browser window. It must be placed inside the head tag and must be closed immediately. (Optional)

<body>: The text between the body tag describes the body content of the page that is visible to the end user. This tag contains the main content of the HTML document.

<h1>: The text between the <h1> tag describes the first level header of the web page.

<p>: The text between the <p> tag describes the paragraph on the web page.>

In this article today we are talking difference between “Div” and “Span”

<div> Div is block element are take the full available width of block level. Div tags are used to define section in document block wise element.

Note: Block level elements are <div>, <p>, <img>, <section> and many more.

Example of block level element see below:

<div> full available width of block level </div>

<span> Span Inline elements are only take the width that is required to fit into the box.

span is very similar to the HTML “div” tag, but div is a block-level tag and span is an inline tag. Span element is a generic online container for online elements and content.

Span Inline elements are only take the width that is required to fit into the box.

Example of inline element see below:

<span> required to fit width into the box. </span>

difference between “div” and “span” elements

difference between "div" and "span" elements
difference between div and span
top html interview question

Top HTML / HTML5 Interview Questions

click on button to view and read HTML Interview Questions

Class– A class is a style (like a group of CSS attributes) that can be applied to one or more HTML elements. It is applied to an HTML element via the class attribute and the class name.

.example-class: {background: #000;}

ID– A ID selector is a name assigned to a specific style. It can be associated with one HTML element with the assigned ID. Within CSS, ID selectors are defined with the # character followed by the selector name.

#example-id: {background: #000;}

A CSS (cascading style sheet) file allows you to separate your web sites HTML content from it’s style. As always you use your HTML file to arrange the content, but all of the presentation (fonts, colors, background, borders, text formatting, link effects & so on…) are accomplished within a CSS.

  • CSS stands for Cascading Style Sheets
  • Styles define how to display HTML elements
  • Styles were added to HTML 4.0 to solve a problem
  • External Style Sheets can save a lot of work
  • External Style Sheets are stored in CSS files

Styles define how to display HTML elements  Styles were added to HTML 4.0 to solve a problem  External Style Sheets can save a lot of work  External Style Sheets are stored in CSS files

How to use the CSS?

We can use Three Ways to Insert CSS

Internal Stylesheet

First we will explore the internal method. This way you are simply placing the CSS code within the tags of each HTML file you want to style with the CSS. example below.

<style type="text/css"> CSS Content Goes Here </style>

With this method each (X)HTML file contains the CSS code needed to style the page. Meaning that any changes you want to make to one page, will have to be made to all. This method can be good if you need to style only one page, or if you want different pages to have varying styles.

External Stylesheet

<link rel="stylesheet" type="text/css" href="Path To stylesheet.css" />

Or you can also use the @import method as shown below

<style type="text/css">@import url(Path To stylesheet.css)</style>

Either of these methods are achieved by placing one or the other in the head section as shown in example below.

<head> <title><title> <link rel="stylesheet" type="text/css"href="style.css" /> </head> <body>
<head> <title><title> <style type="text/css"> @import url(Path To stylesheet.css) </style> </head>

Inline Styles

An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly!
To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph:

<p style="color: #ff0000;">Some red text</p>