Back to Tech Interviews

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.

Total: 200 QuestionsLearned: 0 / 200 (0%)
Difficulty Filters

Tools & Options
Showing 200 of 200 questions
Beginner
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.

Beginner
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.

Beginner
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.

Beginner
What is a Container in Bootstrap?
Beginner
Difference between .container and .container-fluid?
Beginner
What are the default Bootstrap breakpoints?
Beginner
How do you create a row in Bootstrap?
Beginner
How many columns are in the Bootstrap grid?
Beginner
What is a gutter in Bootstrap?
Beginner
How to remove gutters in a row?
Beginner
What is an Offset column?
Experience
What is Column Ordering?
Beginner
How to center a column in Bootstrap?
Beginner
What are nesting columns?
Experience
What is Flexbox in Bootstrap?
Beginner
How to make a column take the remaining width?
Beginner
What is the purpose of .col-auto?
Experience
How to align columns vertically?
Experience
How to align a single column vertically?
Advanced
What is the Z-index in Bootstrap layout?
Experience
Explain the box-sizing in Bootstrap.
Experience
What is Reboot in Bootstrap?
Advanced
How to create a multi-row layout without multiple .row divs?
Beginner
What are Display utilities?
Beginner
How to hide an element on mobile only?
Beginner
What are Spacing utilities?
Beginner
What does .mx-auto do?
Experience
How to create a sticky top element?
Experience
Difference between .fixed-top and .sticky-top?
Beginner
What is Aspect Ratio utility in Bootstrap 5?
Beginner
How to create a responsive embed?
Beginner
What are Float utilities?
Experience
What is Clearfix?
Beginner
How to use Horizontal Centering for images?
Advanced
Explain Z-index utilities in BS5.
Beginner
What is Overflow utility?
Beginner
How to change text alignment responsively?
Experience
What are Visually Hidden utilities?
Experience
Explain the .stretched-link utility.
Beginner
How to use Text Truncation?
Beginner
What does .col-12 .col-md-8 do?
Experience
How to push a column to the end of a row?
Beginner
What is .vh-100?
Beginner
What is .vw-100?
Experience
How to create a vertical divider?
Beginner
What are Opacity utilities?
Experience
How to change the background-opacity?
Experience
What is Object Fit utility?
Beginner
Explain .gap utility in BS5.
Advanced
How to handle RTL (Right-to-Left) in Bootstrap 5?
Beginner
What is a Card in Bootstrap?
Beginner
How to create a Modal in Bootstrap?
Beginner
What is the purpose of data-bs-toggle and data-bs-target?
Beginner
How to make a Navbar responsive?
Beginner
What is a Carousel in Bootstrap?
Beginner
How to add indicators to a Carousel?
Beginner
What is a Breadcrumb?
Beginner
How to create a Button Group?
Beginner
What is a Dropdown in Bootstrap?
Experience
How to position a Dropdown?
Beginner
What is an Accordion?
Beginner
Difference between .btn-primary and .btn-outline-primary?
Beginner
How to change the size of a button?
Beginner
What is a Badge in Bootstrap?
Beginner
How to create a Pill Badge?
Beginner
What is an Alert?
Experience
How to make an Alert dismissible?
Beginner
What are Progress bars?
Experience
How to make a Progress bar striped or animated?
Beginner
What is a List Group?
Experience
What is a Modal backdrop?
Experience
How to vertically center a Modal?
Advanced
What is Scrollspy?
Experience
How to implement Tooltips?
Experience
Difference between Tooltip and Popover?
Beginner
What is Offcanvas in Bootstrap 5?
Experience
How to create a Toast?
Experience
What is the Placeholder component?
Experience
How to create a Tabbed interface?
Beginner
What is a Pagination component?
Beginner
How to change the size of Pagination?
Beginner
What is the Collapse plugin?
Advanced
How to trigger collapse with multiple buttons?
Beginner
What is the purpose of .active class in navs?
Experience
What is the .disabled class behavior?
Beginner
How to create a Spinner (Loading icon)?
Advanced
Horizontal Collapse in BS5?
Beginner
How to create a floating label in Forms?
Beginner
What is .input-group?
Experience
How to validate forms in Bootstrap?
Beginner
What are Checkboxes and Radios styling?
Beginner
How to create a Switch (Toggle)?
Beginner
What is the Range input?
Beginner
How to use custom Select menu?
Beginner
What is a Figure component?
Beginner
How to create responsive Tables?
Beginner
Contextual classes for Tables?
Beginner
Striped and Hoverable Tables?
Beginner
What is Close Button component?
Experience
What is the 'Stack' utility in BS5.1+?
Beginner
What are Utility Classes?
Beginner
How to change text color?
Beginner
How to change background color?
Beginner
What is the utility for Font Weight?
Beginner
How to change Font Size?
Experience
Explain Spacing levels (0-5).
Beginner
How to add a border?
Beginner
How to change border thickness?
Beginner
What are Rounded Corners utilities?
Beginner
How to add Shadowns?
Experience
Explain Flex Direction utilities.
Experience
How to use Flex Wrap?
Experience
Justify Content utilities?
Experience
Align Items utilities?
Experience
What is the purpose of .flex-grow-1?
Beginner
How to center text in a div?
Beginner
How to make an image responsive?
Beginner
What are thumbnails in Bootstrap?
Beginner
Explain .overflow-hidden.
Experience
What is the utility for User Selection?
Experience
How to control Pointer Events?
Beginner
What are Text Decoration utilities?
Beginner
How to transform text case?
Experience
What is Line Height utility?
Beginner
Explain .w-100 and .h-100.
Experience
How to use Gradients as background?
Experience
What is the utility for Border Opacity?
Experience
Explain Vertical Alignment (Inline elements).
Advanced
How to add a Focus Ring?
Experience
What are Link utilities?
Advanced
How to change link opacity?
Advanced
How to change the underline color of a link?
Beginner
What is .invisible class?
Beginner
Explain .fixed-bottom.
Experience
How to create a full-screen background image?
Experience
What is the utility for Word Wrap?
Experience
Explain .stretched-link on a card.
Beginner
What are Ratio utilities?
Beginner
How to align text based on viewport?
Experience
What does .clearfix do?
Beginner
How to disable text selection?
Experience
What is .top-0, .start-0?
Advanced
How to center an absolute element?
Advanced
What is .translate-middle-x / -y?
Experience
What are Interaction utilities?
Advanced
How to change the focus color?
Advanced
What is the default spacer value?
Beginner
How to remove a border on one side?
Experience
What is the utility for vertical centering text in a flex container?
Beginner
How to make text semi-bold?
Advanced
How do you customize Bootstrap using Sass?
Advanced
What is the purpose of _variables.scss?
Advanced
Explain the !default flag in Bootstrap Sass.
Advanced
How to add new colors to the theme?
Advanced
What is the Utility API in Bootstrap 5?
Advanced
How to remove a default utility using the API?
Advanced
What is PurgeCSS and why use it with Bootstrap?
Advanced
Explain Color Contrast utilities.
Experience
What is the purpose of .no-gutters in BS4 vs .g-0 in BS5?
Experience
How to use Bootstrap with React?
Experience
How to use Bootstrap with Angular?
Advanced
Explain the 'Popper.js' dependency.
Advanced
Why did Bootstrap 5 remove jQuery?
Advanced
How to migrate from BS4 to BS5?
Experience
What is Dark Mode support in BS5.3?
Advanced
How to implement a theme switcher?
Advanced
Explain 'CSS Variables' in Bootstrap 5.
Experience
How to use 'Theme Colors' in custom CSS?
Advanced
What is 'Autoprefixer'?
Experience
How to handle 'Accessibility' (A11y) in Bootstrap?
Experience
Explain 'Static' vs 'Dynamic' Modals.
Experience
How to lazy load a Carousel image?
Advanced
What is the purpose of _utilities.scss?
Advanced
How to create a custom breakpoint?
Advanced
Explain the 'Mixins' provided by Bootstrap.
Advanced
How to use 'media-breakpoint-up' in Sass?
Advanced
What is the 'Container-Max-Widths' map?
Experience
Difference between .nav and .navbar?
Advanced
How to create a Mega Menu?
Advanced
What is the 'Shadow' variable customization?
Beginner
How to use Bootstrap with a CDN?
Advanced
What is 'Bower'? (Is it still used?)
Advanced
Explain the 'Tooltip' life cycle events.
Experience
What is 'Vite' and how to use it with Bootstrap?
Advanced
How to change the default font globally?
Advanced
Explain the 'Close' button implementation.
Advanced
What is 'Normalize.css'?
Advanced
How to create a custom Scrollbar using Bootstrap?
Experience
What is the 'Active' state management in Modals?
Experience
How to stop a Carousel from auto-cycling?
Experience
Explain 'Validation Tooltips'.
Beginner
How to use 'Icons' with Bootstrap?
Advanced
What is the 'Dropdown' positioning engine?
Advanced
How to create a custom 'Grid'?
Experience
Explain 'Container-sm' vs 'Container-md' etc.
Advanced
How to customize the 'Gutter' size globally?
Experience
What is the 'Emphasis' utility?
Advanced
How to use 'Link-underline-offset'?
Advanced
What is the 'Focus-ring-primary' utility?
Advanced
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.

Continuous learning: Practice daily, mark completed questions as learned, and revisit difficult concepts.Explore All Interview Tracks →

Explore Related Tools

Hand-picked utilities and calculators related to this tool.

Related Tools