QuizzesTables — Real Data, and Making It Fit a Phone — Concept Check
intermediate
html-css

Tables — Real Data, and Making It Fit a Phone — Concept Check

Questions on Tables — Real Data, and Making It Fit a Phone. A table is the right element for tabular data and the wrong one for layout. Headers with scope make it navigable; a phone needs a deliberate strategy, not a horizontal scrollbar by accident.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Tables — Real Data, and Making It Fit a Phone — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.You have a table with eight columns that needs to be displayed on a 360px wide phone screen. What is the best strategy to ensure accessibility and usability?

    • AUse divs instead of a table for better control
    • BHide all columns except the first two
    • CStack the table into cards below a breakpoint
    • DUse a horizontal scrollbar without any additional markup
  2. 2.A developer uses a table to display data, but the screen reader only reads disconnected values. What is likely missing from the table?

    • ACorrect CSS styling
    • BProper use of scope attributes
    • CA caption element
    • DA table footer
  3. 3.When should you choose to hide low-priority columns on a phone display?

    • AWhen the table is too wide for the screen
    • BWhen the data is not critical for immediate understanding
    • CWhen the table has more than four columns
    • DWhen you want to improve performance by reducing data
  4. 4.A table on a webpage is not announcing its caption to screen readers. What could be the problem?

    • AThe caption element is missing
    • BThe caption text is too long
    • CThe table is using divs instead of table elements
    • DThe table lacks a thead section
  5. 5.Why is it not recommended to use tables for page layout?

    • ATables do not support responsive design
    • BTables are harder to style than divs
    • CTables load slower than divs
    • DTables are semantically incorrect for layout
  6. 6.A developer is using divs to create a data grid. What must they ensure for accessibility?

    • AUse CSS grid for layout
    • BEnsure all divs have unique IDs
    • CAdd appropriate roles to each element
    • DLimit the number of divs to improve performance
  7. 7.What is the role of the 'scope' attribute in a table?

    • AIt defines the data type of the column
    • BIt helps screen readers identify the context of a cell
    • CIt sets the width of the table columns
    • DIt controls the visual style of the table
  8. 8.A developer wants to make a table's header sticky for better navigation on long tables. Which CSS property should they use?

    • Aoverflow-x: auto
    • Bvisibility: visible
    • Cdisplay: flex
    • Dposition: sticky