Accessibility · Middle · Question 53 of 75

What is a good way to expose a sortable table column?

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.

Further reading

Problem with a question

Accessibility · Middle · question 53

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz