0
0
Bootsrapmarkup~20 mins

Row and column structure in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bootstrap Grid Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Bootstrap Grid Rows
In Bootstrap, what is the main purpose of a .row class inside a container?
AIt defines the width of the container to be fixed and centered.
BIt adds padding around the container to create space outside the grid.
CIt creates a horizontal group of columns and clears the floats to align columns properly.
DIt styles text inside columns to be bold and centered.
Attempts:
2 left
💡 Hint
Think about how columns are arranged horizontally in Bootstrap.
📝 Syntax
intermediate
2:00remaining
Correct Column Class Usage
Which option correctly creates three equal-width columns inside a Bootstrap row for medium screens and above?
Bootsrap
<div class="container">
  <div class="row">
    <!-- Columns here -->
  </div>
</div>
A<div class="col-md-4">Column 1</div><div class="col-md-4">Column 2</div><div class="col-md-4">Column 3</div>
B<div class="col-3">Column 1</div><div class="col-3">Column 2</div><div class="col-3">Column 3</div>
C<div class="col-md-3">Column 1</div><div class="col-md-3">Column 2</div><div class="col-md-3">Column 3</div>
D<div class="col-md-6">Column 1</div><div class="col-md-6">Column 2</div><div class="col-md-6">Column 3</div>
Attempts:
2 left
💡 Hint
Bootstrap grid columns add up to 12 units per row.
layout
advanced
2:00remaining
Responsive Column Behavior
Given this Bootstrap code, how will the columns behave on small (sm) and large (lg) screens?
A
B
C
D
AOn small screens, four columns per row; on large screens, two columns per row.
BOn small screens, columns take full width; on large screens, two columns per row.
COn all screen sizes, columns stack vertically one by one.
DOn small screens, two columns per row; on large screens, four columns per row.
Attempts:
2 left
💡 Hint
Remember Bootstrap grid uses 12 units per row and classes define column width per breakpoint.
selector
advanced
1:30remaining
CSS Selector for Bootstrap Columns
Which CSS selector correctly targets all Bootstrap columns inside a row regardless of their size classes?
A.container .col
B.row > [class*='col-']
C.row .col
D.row > .col-md-4
Attempts:
2 left
💡 Hint
Bootstrap column classes always start with 'col-' followed by breakpoint and number.
accessibility
expert
2:30remaining
Improving Accessibility in Bootstrap Grid
Which practice best improves keyboard navigation and screen reader clarity in a Bootstrap grid layout?
AAdd <code>role="region"</code> and <code>aria-label</code> to each <code>.row</code> to describe the section purpose.
BAdd <code>tabindex="-1"</code> to all columns to prevent keyboard focus.
CUse only <code>div</code> elements without roles or labels to keep code simple.
DUse inline styles to highlight columns visually without ARIA attributes.
Attempts:
2 left
💡 Hint
Think about how screen readers identify page sections and how keyboard users navigate.