C. Columns should have fixed width classes like col-6
D. No error, code is correct
Solution
Step 1: Check Bootstrap structure rules
Columns (col) must be inside a row to work properly.
Step 2: Identify missing row
The code has container but no row wrapping the columns, so columns won't behave as expected.
Final Answer:
Missing row container around the columns -> Option A
Quick Check:
Columns need row wrapper [OK]
Hint: Always wrap col inside row [OK]
Common Mistakes:
Skipping the row wrapper
Confusing container with row
Thinking fixed width classes are required for equal columns
5. You want to create four equal-width columns that stack vertically on small screens but appear side by side on medium and larger screens. Which Bootstrap classes should you use?
hard
A. col inside a container
B. col-md inside a row
C. col-sm inside a row
D. col-lg inside a container
Solution
Step 1: Understand responsive column classes
Bootstrap uses breakpoint prefixes like col-md to apply column widths starting at medium screen sizes.
Step 2: Choose classes for stacking on small and equal width on medium+
Using col-md inside a row means columns stack vertically on small screens and become equal-width side by side on medium and larger screens.
Final Answer:
col-md inside a row -> Option B
Quick Check:
Use col-md for medium+ equal columns, stack below [OK]
Hint: Use breakpoint classes like col-md for responsive equal columns [OK]
Common Mistakes:
Using col without breakpoint for responsive stacking
Not wrapping columns in a row
Using container instead of row for columns
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.