Below are few major features of Bootstrap
Q1. What is Bootstrap?
Q2. Why Bootstrap is used for web development?
Reasons, why Bootstrap is used for web designing, are: -
Q3. Enlist major components of Bootstrap?
Here is a list of some major components of Bootstrap that are very important while designing the web.
Glyphicons, Dropdowns, Button groups, Button dropdowns, Input groups, Jumbotron, Page header, Thumbnails, Alerts, Progress bars, Media object, List group, Panels, Wells, Navs, Navbar, Breadcrumbs, Pagination, Labels, Badges.
Some of the major components in Bootstrap are,
Q4. What does Bootstrap package includes?
The Bootstrap package includes:
Q5. What are media queries in CSS?
It allows the user to customize the presentation of their web pages to a particular extent like tablets, desktop, mobile phones and many more without changing in the markups. Media queries comprise media type, zero or many more expressions that match the condition and type of a media feature like screen resolution and device width.
Q6. How many types of layout are available in Bootstrap?
There are mainly two types of layouts are available bootstrap. They are
Q7. What is Jumbotron in Bootstrap?
In Bootstrap, a Jumbotron is a large box that is styled with large text and heavy padding for bringing extra attention to some special content or information.
Syntax: Use a <div> element with class .jumbotron to create a jumbotron:
<div class="jumbotron"> <h1>...</h1> <p>write your content</p> </div>
Q8. What are Offset columns in Bootstrap?
The use of an offset in bootstrap is to push columns over for more spacing. Use
.col-md-offset-* classes to use it on large displays.
This offset property is used to push the column over to the next cell to provide more space to the elements present in that column. To use column offset, use the .col-md-offset class.
//example <div class="row"> <div class="col-md-4">first column</div> <div class="col-md-4 offset-md-4">second column</div> </div>
Q9. Explain Normalize in Bootstrap?
Normalize.css is used to make browsers render all elements with more consistency and in line with modern standards. It targets only those styles which need normalization.
Q10. How to create responsive images in Bootstrap 4?
As screens and images come in different sizes. So, to handle that, responsive images are used that automatically adjusts with the size of the screen. In Bootstrap .img-fluid class is used to make images responsive
To create a responsive image:
.img-fluid class to the <img /> tag to create responsive image. The image will then fit easily to the parent element.
The .img-fluid class applies max-width: 100%; and height: auto; to the image:
<img class="img-fluid" src="url.jpg" alt="Blank">
Q11. What are glyphicons?
Glyphicons are widely used in web projects. These are the icon fonts to use in projects. Glyphicons Halflings are not available in free. But their creator made free for the bootstrap user. So, it is very useful if you are using Bootstrap.
Q12. What is Bootstrap popover?
A Bootstrap popover is the fascinating feature of the Bootstrap which is used to make the website look more dynamic. It is generally used to get more information about the element just by pointing the mouse pointer over that element. In the popover, if you click on any element that was previously included in your script, it will give you a message as a popover and you can see the message written in the script.
To Create Popover:
Add the data-toggle="popover" attribute to an element to create a popover. the header text and the content of the popover are defined by "title" and "data-content" attributes.
< a href="#" data-toggle="popover" title="Popover Header" data-content="Some content">Toggle popover</a>
Note: Popovers must be initialized with jQuery. Call the popover () method through the specific element.
Q13. What is card in Bootstrap?
A bootstrap card is a manageable and extensible content container in Bootstrap with some variants and options. It includes options for headers and footers, contextual background colors, powerful display options and a broad variety of content. If the user is familiar with Bootstrap 3, cards substitute our wells, old panels, and thumbnails.
Use .card class to create a basic card and write content inside the .card-body class.
<div class="card"> <div class="card-body">Basic card</div> </div>
Q14. What is Bootstrap caraousel?
The carousel, built with CSS is a slideshow for cycling through a series of content. The content includes images, texts, or custom markups with the support of previous/next indicators.
Q15. What is a Bootstrap Container?
The container is used to set the content's margins in bootstrap. It deals with the behavior of your layout. It includes the row elements which are further composed of columns. It is the most basic layout element in the bootstrap which is required when you are using the default grid system.
There are two container classes to choose from:
Q16. What are Button Groups in Bootstrap?
Button group is the feature of Bootstrap 4 that allows you to group multiple buttons on a single line.
Syntax: Use .btn-grp in parent <div> element to create the button group:
<div class="btn-group"> <button type="button" class="btn btn-primary">CSE</button> <button type="button" class="btn btn-primary">Mech</button> <button type="button" class="btn btn-primary">IT</button> </div>
Q17. What are bootstrap alerts?
The alerts in Bootstrap is used to style a predefined message to the user. The messages act as feedback to the user’s actions. Alerts are created with .alert class.
.They have contextual classes such as .alert-success, .alert-info, .alert-warning, and .alert-danger.
//example <div class="alert alert-success"> Some success message. </div> <div class="alert alert-info"> Some information message. </div> <div class="alert alert-warning"> Some warning message. </div> <div class="alert alert-danger"> Some danger message. </div>
Q18. What is Bootstrap tooltip?
Tooltip is a smaller popup that appears when the user places the mouse pointer over a link to an element. It then provides information about that element.
It is very useful for the new visitor to your website because they can know the purpose of links and icons with the help of this feature.
To Create Tooltip:
Add the data-toggle="tooltip" attribute to an element to create a tooltip. Use "title" attribute to display the content of tooltip.
< a href="#" data-toggle="tooltip" title="Learn Bootstrap">content </a>
Q19. What is Scrollspy in Bootstrap?
Scrollspy is a Plugin. This plugin is used to automatically update the links based on the scroll position in a navigation list. It indicates which link is currently active in the viewport.
Q20. Enlist major differences between Bootstrap and Foundation?
Differences between Bootstrap and Foundation
|It has wide community support.||It has less community support|
|It provides a wide variety of themes||It provides a less variety of themes|
|It supports Internet explorer version8||It does not support Internet Explorer 8|
|It provides more tool to develop the website||It also provides tools but not as much as Bootstrap|
|It even works with less preprocessor||It works only with the Sass.|
Q21. What is use of Modal plugin in Bootstrap?
The Modal Plugin is a dialog box or a popup window that is layered over a parent window. It is displayed on top of the current page and can be meant for interaction, information or more. The purpose of the modal plugin is to display the content from other sources without leaving the current page.
Q22. What dependencies required to use Bootstrap?
Bootstrap has no dependencies. Howerever if you have to use ajax to need to add jquery file.
Q23. What is a Source map file?
A source map is the factory of the information that is utilized to map the code within a compressed file back to its source. By this, you are able to designate the different source maps for each of your compressed files.
Q24. What are advantages of Bootstrap?
Some of the advantages of using Bootstrap are as follows:
Q25. Enlist few alternative of Bootstrap?
Some of the popular alternatives to Bootstrap are as follows:
Q26. What is Bootstrap Navbar?
The navigation bar or Navbar in Bootstrap is located at the top of the page that includes the support for branding, navigation, and collapse plugin. The default navigation bar is created with the class
<nav class=”navbar navbar-default”>.
The sub-components of the navigation bar are .navbar-brand, .navbar-nav, .navbar-toggler, .form-inline, .navbar-text, and .collapse.navbar-collapse. Each component has its own functions.
Q27. What are badges in Bootstrap?
Badges in Bootstrap is used to highlight new or unread items in your web application. It is similar to the labels but has more rounded corners. You can use the class "badge" to create a badge.
//example <a href = "#">Messages <span class = "badge"></span></a>
Q28. What is a progress bar in bootstrap?
The progress bar in Bootstrap is used to provide visual feedback to the user on the progress of the action or process on the website. The default progress bar can be used by the .progress class in an element.
You can also create a progress bar with labels, colors, striped colors, animation, and stacked bars.
//example <div class="progress"> <div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:70%"> <span class="sr-only">70% Complete</span> </div> </div>
Q29. What are labels in Bootstrap?
Labels in Bootstrap is used to provide additional information like tips, offering counts to the user. The default label can be used with .label class. The appearance of the label can be modified by using the sub-components such as label-primary, label-success, label-info, label-warning, and label-danger.
//example <h1>Example of the default label class <span class = "label label-default">Label</span></h1>
Q30. Enlist different form controls supported by Bootstrap?
The supported form controls in the bootstrap are input, text area, button, checkbox, radio, and select.
Thus, these interview questions cover mostly all the important elements and functions of bootstrap, which an interviewer can ask you. Prepare these sets of questions so that you can stand out of the competition.