Bootstrap 5 Interview Master
Comprehensive guide with 200+ Bootstrap interview questions covering Flexbox 12-column grid, responsive breakpoints, utility API, Sass variables, and UI components.
Difficulty Filters
Tools & Options
What is Bootstrap?
Bootstrap is a free, open-source front-end framework for faster and easier web development. It includes HTML and CSS-based design templates for typography, forms, buttons, tables, navigation, modals, image carousels, and optional JavaScript plugins.
What are the key components of Bootstrap?
Key components include the Grid System, Typography, Buttons, Forms, Navigation bars, Modals, Card components, and various utility classes for spacing and colors.
Explain the Bootstrap Grid System.
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. It is based on a 12-column layout.
What is a Container in Bootstrap?
Difference between .container and .container-fluid?
What are the default Bootstrap breakpoints?
How do you create a row in Bootstrap?
How many columns are in the Bootstrap grid?
What is a gutter in Bootstrap?
How to remove gutters in a row?
What is an Offset column?
What is Column Ordering?
How to center a column in Bootstrap?
What are nesting columns?
What is Flexbox in Bootstrap?
How to make a column take the remaining width?
What is the purpose of .col-auto?
How to align columns vertically?
How to align a single column vertically?
What is the Z-index in Bootstrap layout?
Explain the box-sizing in Bootstrap.
What is Reboot in Bootstrap?
How to create a multi-row layout without multiple .row divs?
What are Display utilities?
How to hide an element on mobile only?
What are Spacing utilities?
What does .mx-auto do?
How to create a sticky top element?
Difference between .fixed-top and .sticky-top?
What is Aspect Ratio utility in Bootstrap 5?
How to create a responsive embed?
What are Float utilities?
What is Clearfix?
How to use Horizontal Centering for images?
Explain Z-index utilities in BS5.
What is Overflow utility?
How to change text alignment responsively?
What are Visually Hidden utilities?
Explain the .stretched-link utility.
How to use Text Truncation?
What does .col-12 .col-md-8 do?
How to push a column to the end of a row?
What is .vh-100?
What is .vw-100?
How to create a vertical divider?
What are Opacity utilities?
How to change the background-opacity?
What is Object Fit utility?
Explain .gap utility in BS5.
How to handle RTL (Right-to-Left) in Bootstrap 5?
What is a Card in Bootstrap?
How to create a Modal in Bootstrap?
What is the purpose of data-bs-toggle and data-bs-target?
How to make a Navbar responsive?
What is a Carousel in Bootstrap?
How to add indicators to a Carousel?
What is a Breadcrumb?
How to create a Button Group?
What is a Dropdown in Bootstrap?
How to position a Dropdown?
What is an Accordion?
Difference between .btn-primary and .btn-outline-primary?
How to change the size of a button?
What is a Badge in Bootstrap?
How to create a Pill Badge?
What is an Alert?
How to make an Alert dismissible?
What are Progress bars?
How to make a Progress bar striped or animated?
What is a List Group?
What is a Modal backdrop?
How to vertically center a Modal?
What is Scrollspy?
How to implement Tooltips?
Difference between Tooltip and Popover?
What is Offcanvas in Bootstrap 5?
How to create a Toast?
What is the Placeholder component?
How to create a Tabbed interface?
What is a Pagination component?
How to change the size of Pagination?
What is the Collapse plugin?
How to trigger collapse with multiple buttons?
What is the purpose of .active class in navs?
What is the .disabled class behavior?
How to create a Spinner (Loading icon)?
Horizontal Collapse in BS5?
How to create a floating label in Forms?
What is .input-group?
How to validate forms in Bootstrap?
What are Checkboxes and Radios styling?
How to create a Switch (Toggle)?
What is the Range input?
How to use custom Select menu?
What is a Figure component?
How to create responsive Tables?
Contextual classes for Tables?
Striped and Hoverable Tables?
What is Close Button component?
What is the 'Stack' utility in BS5.1+?
What are Utility Classes?
How to change text color?
How to change background color?
What is the utility for Font Weight?
How to change Font Size?
Explain Spacing levels (0-5).
How to add a border?
How to change border thickness?
What are Rounded Corners utilities?
How to add Shadowns?
Explain Flex Direction utilities.
How to use Flex Wrap?
Justify Content utilities?
Align Items utilities?
What is the purpose of .flex-grow-1?
How to center text in a div?
How to make an image responsive?
What are thumbnails in Bootstrap?
Explain .overflow-hidden.
What is the utility for User Selection?
How to control Pointer Events?
What are Text Decoration utilities?
How to transform text case?
What is Line Height utility?
Explain .w-100 and .h-100.
How to use Gradients as background?
What is the utility for Border Opacity?
Explain Vertical Alignment (Inline elements).
How to add a Focus Ring?
What are Link utilities?
How to change link opacity?
How to change the underline color of a link?
What is .invisible class?
Explain .fixed-bottom.
How to create a full-screen background image?
What is the utility for Word Wrap?
Explain .stretched-link on a card.
What are Ratio utilities?
How to align text based on viewport?
What does .clearfix do?
How to disable text selection?
What is .top-0, .start-0?
How to center an absolute element?
What is .translate-middle-x / -y?
What are Interaction utilities?
How to change the focus color?
What is the default spacer value?
How to remove a border on one side?
What is the utility for vertical centering text in a flex container?
How to make text semi-bold?
How do you customize Bootstrap using Sass?
What is the purpose of _variables.scss?
Explain the !default flag in Bootstrap Sass.
How to add new colors to the theme?
What is the Utility API in Bootstrap 5?
How to remove a default utility using the API?
What is PurgeCSS and why use it with Bootstrap?
Explain Color Contrast utilities.
What is the purpose of .no-gutters in BS4 vs .g-0 in BS5?
How to use Bootstrap with React?
How to use Bootstrap with Angular?
Explain the 'Popper.js' dependency.
Why did Bootstrap 5 remove jQuery?
How to migrate from BS4 to BS5?
What is Dark Mode support in BS5.3?
How to implement a theme switcher?
Explain 'CSS Variables' in Bootstrap 5.
How to use 'Theme Colors' in custom CSS?
What is 'Autoprefixer'?
How to handle 'Accessibility' (A11y) in Bootstrap?
Explain 'Static' vs 'Dynamic' Modals.
How to lazy load a Carousel image?
What is the purpose of _utilities.scss?
How to create a custom breakpoint?
Explain the 'Mixins' provided by Bootstrap.
How to use 'media-breakpoint-up' in Sass?
What is the 'Container-Max-Widths' map?
Difference between .nav and .navbar?
How to create a Mega Menu?
What is the 'Shadow' variable customization?
How to use Bootstrap with a CDN?
What is 'Bower'? (Is it still used?)
Explain the 'Tooltip' life cycle events.
What is 'Vite' and how to use it with Bootstrap?
How to change the default font globally?
Explain the 'Close' button implementation.
What is 'Normalize.css'?
How to create a custom Scrollbar using Bootstrap?
What is the 'Active' state management in Modals?
How to stop a Carousel from auto-cycling?
Explain 'Validation Tooltips'.
How to use 'Icons' with Bootstrap?
What is the 'Dropdown' positioning engine?
How to create a custom 'Grid'?
Explain 'Container-sm' vs 'Container-md' etc.
How to customize the 'Gutter' size globally?
What is the 'Emphasis' utility?
How to use 'Link-underline-offset'?
What is the 'Focus-ring-primary' utility?
How to perform 'Progressive Enhancement' in BS?
Technical Interview Mastery Blueprint
Proven methodologies and frameworks to succeed in technical and architecture rounds.
1. The Engineering STAR Technique
When responding to architectural or situational questions, structure your answer using Situation, Technical Constraint, Action, and Measurable Result. Rather than jumping straight to syntax, articulate the business problem, why certain patterns (e.g. caching, queuing, immutability) were selected over alternatives, and what latency or throughput improvements were achieved.
2. Defending Architectural Trade-Offs
Senior interviewers evaluate how you weigh trade-offs. Always explain why you chose an approach: e.g., memory overhead vs CPU cycle speed, consistency vs availability (CAP theorem), or normalized schemas vs denormalized fast reads. Stating the drawbacks of your own proposal demonstrates maturity and production experience.
3. Clean Code & Edge-Case Proactivity
In live-coding rounds, communicate your thinking aloud before typing. State edge cases explicitly: null or undefined inputs, extreme boundary values, concurrency races, and network timeouts. Writing modular, well-named functions with deterministic unit tests separates junior candidates from staff-level engineers.
4. Antipatterns to Avoid
Avoid reciting memorized definitions without practical context. Never dismiss non-functional requirements such as security (CSRF, injection, token rotation), observability (logging, metrics), and accessibility (ARIA, semantic standards). Always ask clarifying scope questions before writing complex implementations.
Explore Related Tools
Hand-picked utilities and calculators related to this tool.