0
0
Bootsrapmarkup~20 mins

Table caption placement in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Table Caption Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2:00remaining
Where does the caption appear in this Bootstrap table?
Given this Bootstrap table code, where will the caption appear visually in the browser?
Bootsrap
<table class="table">
  <caption>Monthly Sales Data</caption>
  <thead>
    <tr><th>Month</th><th>Sales</th></tr>
  </thead>
  <tbody>
    <tr><td>January</td><td>$1000</td></tr>
    <tr><td>February</td><td>$1200</td></tr>
  </tbody>
</table>
ABelow the table, centered
BAbove the table, aligned to the left
CInside the first row of the table header
DFloating on the right side of the table
Attempts:
2 left
💡 Hint
Think about the default position of the element in HTML tables.
selector
intermediate
2:00remaining
Which CSS selector targets the table caption in Bootstrap?
You want to style the caption text of a Bootstrap table. Which CSS selector correctly targets the caption element?
Atable.caption
Bcaption
C.table-caption
Dtable > caption
Attempts:
2 left
💡 Hint
Remember the caption is a child element of the table.
🧠 Conceptual
advanced
2:00remaining
What is the effect of placing inside in a Bootstrap table?
Consider this HTML snippet:
Quarterly Report
Q1Q2
100150
What happens to the caption placement and rendering?
AThe caption appears inside the table header row
BThe caption appears above the table as usual
CThe caption is ignored and not displayed
DThe browser throws a syntax error and does not render the table
Attempts:
2 left
💡 Hint
Check HTML specification for allowed children of .