![]() |
Bootstrap is a widely used open-source front-end framework for web development, providing a collection of HTML, CSS, and JavaScript components and tools that enable developers to build responsive, mobile-first websites with ease. ![]() Bootstrap Interview Questions And Answers In this article, we will discuss some questions that are commonly asked in a Bootstrap Interview. Commonly Asked TypeScript Interview QuestionsQ1. What is Bootstrap?Bootstrap is a free and open-source tool collection used for creating responsive websites and web applications. It is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites. Bootstrap is used for creating tables, forms, buttons, carousels, navigation bars, and images. Q2. What are the features of Bootstrap?Bootstrap’s features are:
Q3. How many different layouts does Bootstrap have?Bootstrap has 2 major layouts:
Q4. Give an example of a basic grid structure in Bootstrap.Basic grid structure: <div class="container"> Q5. What is a Bootstrap progress bar?A progress bar is used to display the progress of a process on a computer. It displays the range of completion of progress. The progress bar can be added to a web page using inbuilt bootstrap classes. Bootstrap has many types of progress bars. For Ex: .bg-success, .bg-info, bg-warning etc. Q6. Why Bootstrap is preferred for website development over any other platform?When compared to other web development platforms, Bootstrap provides more functionalities. It has significant browser support for practically all popular browsers, like Chrome, Firefox, Safari, etc. Web creation with Bootstrap is simple if you are familiar with CSS and HTML. Q7. What is the difference between Bootstrap and Foundation?
Q8. What are collapsing elements in Bootstrap?When the user clicks or hovers over the element then it shows data called Collapsing Element. This is the modern way to show a large amount of data to the user. We can also create our own collapsing element by using HTML, CSS, and JS. It makes the website very clean by collapsing the data while hovering or clicking on it. But Bootstrap facilitates the collapsing element property in its components. Bootstrap facilitates the collapsing element property Q9. Suggests the lists that Bootstrap supports.There are 3 types of lists supported by Bootstrap are:
Q11. Explain media objects in Bootstrap.Bootstrap media objects such as images or videos can be easily and efficiently aligned to the left or right of some content. Bootstrap media objects are used to place some data next to content to create complex and repetitive content components.
Q12. Why is Jumbotron used in Bootstrap and what steps to add jumbotron?A jumbotron is a big grey box used to indicate some text which requires extra attention. Any text that seems to be important can be written inside a jumbotron to make it appear big and noticeable. Steps to add a jumbotron:
Q13. Explain the uses of the carousel plugin in Bootstrap.Carousel is the slideshow component of bootstrap that is widely used for slideshow or cycling through different elements of an HTML document especially image containers or texts. The major use of the carousel plugin is to implement a slider or a slideshow of images. The HTML div containing images can also contain text. Q14. How can you make responsive images?By adding the class .img-responsive to the <img> tag in Bootstrap, images may be made responsive. This class gives the picture max-width: 100%; and height: auto; so that it scales well with the parent element. Q15. How can you create a navbar in Bootstrap?Bootstrap Navbar is a navigation header that is located at the top of the webpage and can be extended or collapsed, depending on the screen size. Responsive navigation of our website is created by the bootstrap navbar.We can create a standard navigation bar with <nav class=” navbar navbar-default”>. Navbar variations:
Q16. What is a Bootstrap Container?Bootstrap Containers are the most basic layout element and are very essential for basic building blocks of bootstrap that wrap a page’s content. By using container we can align content according to the viewport or given device. We can define container within the container class (.container). In other words, we can also say that containers are established the width for the layout to give the content. All the elements and content are added within the container. Q17. What is Grid System in Bootstrap?Bootstrap Grid System divides up to 12 columns across the page. You can use each of them individually or also can be merge together for wider columns. You can use 12 columns each of width 1 or use 4 columns each of width 3 or any other combination. Q18. What are the key components of Bootstrap?
Q19. What are glyphicons? How to use them?Icon fonts which can be used in web application are called Glyphicons. Bootstrap includes 260 glyphicons. These glyphicons are used for web projects from Bootstrap Glyphicons Halflings Set. Glyphicons Halflings are not available to free of cost, but their creator has made them available for Bootstrap free of cost. For using the Glyphicons icon in Bootstrap, you can add the following code just about anywhere in your code. We can also leave a space for proper padding in between the icon and text: <span class = "glyphicon glyphicon-search"></span>
Q20. Write the steps to create basic or vertical forms using Bootstrap?Forms are the most important and basic template of the website which is used for creating table, signup, login and feedback etc. Thus the availability of form templates in bootstrap has made it easy and we can directly use form templates from bootstrap. Step 1: Include the Bootstrap CDN links in the code in order to use Bootstrap. Step 2: Now you can use bootstrap forms with the input fields whatever you want in the forms inside the body tag. Q21. What do you mean by Bootstrap well?A bootstrap well is something like a bootstrap panel with round borders and padding around it. This is used to create some attention towards some content of the webpage. The .well class adds a rounded border around the element with a gray background color and some padding. But we can change the text color and padding with the help of CSS. Q22. What are the input groups in Bootstrap?Input Groups in Bootstrap are used to extend the default form controls by adding text or buttons on either side of textual inputs, custom file selectors, or custom inputs.
Q23. What is Bootstrap breadcrumb?Bootstrap 5 is the latest major release by Bootstrap in which they have revamped the UI and made various changes. Breadcrumbs are used to indicate the current page’s location within a navigational hierarchy. <ol class="breadcrumb"> Q24. What are bootstrap alerts and how will you create them?Bootstrap Alerts are a technique for styling user messages. They send contextual feedback messages in response to common user behaviors. To alert, you can add an optional close icon. Create a wrapper <div> and add a class of .alert and one of the four contextual classes to create a basic alert. Q25. What are the steps to create a progress bar using bootstrap?To create a progress bar:
Q26. Tell the difference between Bootstrap 4 and Bootstrap 5.
Q27. How is the tooltip different from the popover?When the user hover the element through mouse-pointer, the Tooltip component appears as a little pop-up box. The Popover component shows as a pop-up box when the user clicks on an element. More info might be stored in the popover. The popover will show on the right side of the element by default, while the tooltip will appear on the top. Q28. What is column ordering in Bootstrap?Column ordering classes in Bootstrap help to change the order of our grid system based on different screen sizes eg: desktop, mobile, tablet, and smartwatches. This makes the website more responsive to different screen sizes. Q29. What Are Bootstrap Media Queries?We use a handful of media queries for delivering different style sheets to different devices, to create sensible breakpoints for our layouts and interfaces. Most of the breakpoints are based on the minimum viewport width and allow the element to resize as the viewport changes. Q30. What is Normalize in Bootstrap?Bootstrap provides cross-browser uniformity by using normalize. CSS resets have been replaced by normalize.css, a modern, HTML5-ready alternative. By default styling, it improves cross browser uniformity in HTML element. Q31. In Bootstrap, what are the two method for displaying code?To display the code on our webpage, bootstrap has some tags that can be used to display the code. Method 1: The inline snippet of code wrapped in <code> tag. Inline code should be wrapped in <code> tags. The text which will be displayed is fixed-width and of red font color. Method 2: Code block using <pre> tag to display the code as a standalone block element. For displaying multiple lines of code we can use this tag. Q32. What are Bootstrap panels? How to create a Bootstrap panel with a heading.A panel is a rectangular component of Bootstrap, typically used to add content to the website. It can also have a header or footer, or both. Bootstrap also provides various classes to add padding to the content or multiple colors to make it more attractive. CDN Link: First, include the style sheet in the code to use Bootstrap for creating the panel. <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css”>
Add the following syntax to have a panel with the heading. The panel-heading class enables us to have a heading for our panel. Q33. Explain the purpose of using the Scrollspy plugin?Scrollspy works according to the scroll position or the position at which the user is currently seeing.It targets the navigation bar contents automatically on scrolling the area. Scrollspy can be implemented in two ways:
Q34. Why do we use the affix plugin in Bootstrap?For affixing a <div> to a certain area on a webpage, we utilize the affix plugin in Bootstrap. The plugin also lets you toggle pinning for the attached <div> on and off. The most common application of the affix plugin in Bootstrap is social icons. The attached <div> starts at a specific point on the page and scrolls with it. However, beyond a certain point, it will be stuck in place, preventing the remainder of the webpage from scrolling. Q35. What is the Button group and which class is used for the basic button group?Button groups allow you to stack several buttons on a single line. You can use this to group objects together, such as alignment buttons. For the basic button groups we can use .btn-group. You can use the class .btn to wrap a bunch of buttons in the .btn-group. Q36. Why do we need to use Bootstrap?
Q37. How to create thumbnails using Bootstrap?Step-by-step guide for the implementation: Step 1: Include Bootstrap and jQuery CDN into the <head> tag before all other stylesheets to load our CSS. Step 2: Add <div> tag in the HTML body with class row. In that <div> create four div sections to create four images. Step 3: Add “col-sm-6” and “col-md-3” to four div sections which creates a webpage responsive. Step 4: Add <a> tag with class value thumbnail to define the link of the image in the next line. <a href="#" class="thumbnail">
Q38. What is a bootstrap card and how would you create one?A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. It replaces the use of panels, wells, and thumbnails. All of it can be used in a single container called card. <div class="card"> Q39. What are the two types of spinners that you can create using Bootstrap?Bootstrap provides various classes for creating different styles of “spinner” to display the loading state of projects. These classes are inbuilt with HTML and CSS so no need to write any JavaScript to create them. We can also modify the appearance, size, and placement of the spinners with the classes provided by Bootstrap.
Q40. What is pagination in Bootstrap and how are they classified?Pagination is used to enable navigation between pages on a website. The pagination used in Bootstrap has a large block of connected links that are hard to miss and easily scalable. To manage pagination we can add these classes:
Q41. Discuss the Bootstrap table and various classes that can change the table’s design.Bootstrap provides a series of classes that can be used to apply various styling to the tables such as changing the heading appearance, making the rows stripped, adding or removing borders, making rows hoverable, etc. Bootstrap also provides classes for making tables responsive.
Q42. Write the HTML code to create a basic toast.Toast is used to create something like an alert box which is shown for a short time like a couple of seconds when something happens. Like when the user clicks on a button or submits a form and many other actions. <div class="toast"> Q43. What are badges? Which class will you use to make your badge look more rounded?Badges are simple and basic components that are used to display an indicator or count a number. This is quite useful for mail count and alerting purposes, among other things. Badges are identical to labels, with the exception that they have more rounded corners. The .badge-pill class is used to make the badges more rounded. Q44. What are the steps to create an animated progress bar using bootstrap?Step By Step Guide to Animate Progress Bar Step 1: Add Bootstrap and jQuery CDN inside the <head> tag before the other stylesheets. Step 2: Add a HTML <div> with a class of .progress and .progress-striped. Also add class .active to .progress-striped. Inside the <div> add an empty <div> with a class of .progress-bar and .progress-bar-success. Using CSS attribute specify the width for progress bar. Step 3: Add jQuery in <script> tag to animate progress bar to show progress. Q45. Explain the modal in Bootstrap.The modal component is a dialog box/popup window that is displayed on top of the current page, once the trigger button is clicked. However, clicking on the modal’s backdrop automatically closes the modal. Also, it must be kept in mind that Bootstrap doesn’t support nested modals as they create a bad UI experience for the user. Therefore, only one modal window is supported at a time. Q46. What will be the output of the below code and why? <div class="progress"> If we use the same .progress parent element for numerous bars, Bootstrap will combine them into a single progress bar. The sum of the progress bar in Bootstrap is 100 percent, as we all know. As a result, the progress bar will display the full width and fully populated result. Q47. Explain what is list group in Bootstrap and what is the use of it?List Groups are used to display a series of content. We can modify them to support any content as per our needs. The use of List-Groups is just to display a series or list of content in an organized way. Q48. Explain how to use the Dropdown plugin in Bootstrap.
Q49. Define lead body copy in Bootstrap. Lead Body Copy is used to add emphasis to a paragraph in a body tag. The paragraph tags are inside the Body tags. This gives us a lightweight, large font size and a tall line height. This feature can be used using the pre-defined class “.lead” and see its functionality. Q50. Name some alternatives to Bootstrap.
|
Reffered: https://www.geeksforgeeks.org
Bootstrap |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |