Accessibility · Middle · Question 53 of 75
What is a good way to expose a sortable table column?
- 1A click handler on
td, with colour on the cell - 2A
selectin the footer, with a hidden label - 3A button in the
th, witharia-sorton the header
Show the answer
Correct answer: A button in the th, with aria-sort on the header
Explanation
The button gives keyboard access and the attribute announces the sort direction.