0
0
Bootsrapmarkup~20 mins

12-column grid model 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
2:00remaining
Understanding Bootstrap's 12-Column Grid
In Bootstrap's 12-column grid system, what happens if you create a row with three columns each having class col-5?
AThe columns will stack vertically because total columns exceed 12
BThe columns will fit in one row with some empty space
CThe columns will overlap each other horizontally
DThe columns will automatically resize to fit exactly in one row
Attempts:
2 left
💡 Hint
Remember, the total of column numbers in a row should not exceed 12.
📝 Syntax
intermediate
2:00remaining
Correct Usage of Column Classes
Which of the following Bootstrap column class combinations will create two equal-width columns in a row?
A<div class="col-4"></div><div class="col-4"></div>
B<div class="col-5"></div><div class="col-7"></div>
C<div class="col-6"></div><div class="col-6"></div>
D<div class="col-3"></div><div class="col-9"></div>
Attempts:
2 left
💡 Hint
Two equal columns must each take half of the 12 columns.
layout
advanced
3:00remaining
Visual Result of Nested Columns
What will be the visual layout result of this Bootstrap code?
<div class="row">
  <div class="col-8">
    <div class="row">
      <div class="col-6">A</div>
      <div class="col-6">B</div>
    </div>
  </div>
  <div class="col-4">C</div>
</div>
AA and B take full width above C which takes full width below
BA, B, and C all share the row equally in three columns
CA and B stack vertically inside the left 8 columns; C is below them
DA and B share the left 8 columns equally; C occupies the right 4 columns
Attempts:
2 left
💡 Hint
Nested rows reset the 12-column count inside their parent column.
accessibility
advanced
3:00remaining
Accessibility in Bootstrap Grid Layouts
Which practice improves accessibility when using Bootstrap's 12-column grid for layout?
AUse semantic HTML elements like <code>&lt;main&gt;</code> and <code>&lt;section&gt;</code> inside grid columns
BUse only <code>&lt;div&gt;</code> tags for all grid columns to keep structure simple
CAdd <code>aria-hidden="true"</code> to all grid columns to reduce noise
DAvoid using labels or landmarks inside grid columns to prevent clutter
Attempts:
2 left
💡 Hint
Think about how screen readers understand page structure.
selector
expert
3:00remaining
CSS Selector for Targeting Specific Bootstrap Columns
Given this HTML:
<div class="row">
  <div class="col-4 special">One</div>
  <div class="col-4">Two</div>
  <div class="col-4 special">Three</div>
</div>

Which CSS selector will style only the columns with class special inside a Bootstrap row?
A.special .row
B.row > .special
C.row .col-4
D.col-4.special > .row
Attempts:
2 left
💡 Hint
Look for direct children with the special class inside the row.