0
0
Bootsrapmarkup~20 mins

Responsive tables in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Responsive Table Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What does the .table-responsive class do in Bootstrap?
Choose the correct description of the .table-responsive class in Bootstrap.
AIt makes the table horizontally scrollable on small screens to prevent overflow.
BIt converts the table into a list on small screens.
CIt changes the table background color on small screens.
DIt automatically hides columns on small screens to fit the table.
Attempts:
2 left
💡 Hint
Think about how tables behave on narrow devices and how Bootstrap helps with that.
📝 Syntax
intermediate
2:00remaining
Which Bootstrap class makes a table responsive only on screens smaller than 768px?
Select the correct Bootstrap class that makes a table responsive only on devices smaller than 768px wide.
Atable-responsive-lg
Btable-responsive-xl
Ctable-responsive-md
Dtable-responsive-sm
Attempts:
2 left
💡 Hint
Bootstrap uses size abbreviations like sm, md, lg, xl for breakpoints.
rendering
advanced
2:00remaining
What will be the visual result of this Bootstrap table code?
Given the following HTML code, what will the user see on a narrow mobile screen?
Bootsrap
<div class="table-responsive">
  <table class="table">
    <thead>
      <tr><th>Name</th><th>Age</th><th>City</th></tr>
    </thead>
    <tbody>
      <tr><td>Alice</td><td>30</td><td>New York</td></tr>
      <tr><td>Bob</td><td>25</td><td>Chicago</td></tr>
    </tbody>
  </table>
</div>
AThe table columns will stack vertically, showing each cell on a new line.
BThe table will have a horizontal scrollbar allowing side-to-side scrolling.
CThe table will be hidden on small screens.
DThe table will shrink to fit the screen width without scrolling.
Attempts:
2 left
💡 Hint
Remember what the .table-responsive wrapper does on small screens.
selector
advanced
2:00remaining
Which CSS selector targets only tables inside .table-responsive containers?
Choose the correct CSS selector to style only tables wrapped by .table-responsive in Bootstrap.
A.table-responsive > table
Btable.table-responsive
Ctable > .table-responsive
D.table-responsive table
Attempts:
2 left
💡 Hint
Think about how to select a child element inside a container.
accessibility
expert
3:00remaining
How to improve accessibility for responsive Bootstrap tables?
Which practice best improves accessibility for users navigating responsive tables on small screens?
AAdd <code>aria-label</code> to the <code>table</code> describing its content and ensure keyboard scroll support.
BUse only color to indicate important data differences in the table.
CHide table headers on small screens to save space.
DDisable horizontal scrolling to force table stacking.
Attempts:
2 left
💡 Hint
Think about screen readers and keyboard users when tables scroll horizontally.