Q1. What is Bootstrap?
Bootstrap also known as Twitter Bootstrap is the open-source CSS framework. It aimed at responsive, mobile-first front-end web development. It holds the design templates based on CSS and JavaScript for typography, forms, buttons, navigation, and other interface components.
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.
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.
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:
Add an .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:
Example
<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.
Example:
< 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.
Example
<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:
Example
<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?
Alerts provide a predefined way to style messages to the user. In bootstrap you can use .alert-success, .alert-info, .alert-warning, .alert-danger class to style user messages.
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
Bootstrap | 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.
Valid name is required.
Valid name is required.
Valid email id is required.
Brain Lues
Brain Lues is Web designer and digital graphics Expert from Sydney, Australia. He has a master degree in computer science.He offer full commitment in his work , and be a pleasant and friendly team member.