User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Designing an e-commerce website that is accessible, what would be the proper WAI ARIA role-attribute for the "shopping cart" section of the page?

I understand the current available document landmark roles are:

  • article
  • banner
  • complementary
  • contentinfo
  • main
  • navigation
  • search

However, I do not know which of the one I should use for this particular content.

share|improve this question
up vote 2 down vote accepted

I was also looking for an answer to this, but the grid role didn’t feel right because in my case the basket widget contains controls other than the product list itself, for example: the title, the checkout button, the minimize button.

So I googled some more and found this ALA article: “Accessibility: The Missing Ingredient”. It recommends the dialog role and it feels a bit more appropriate to me.

share|improve this answer

Those are not the only ARIA roles available for assignment to UI elements.

Most carts are tabular data structures which means the grid role would be appropriate. The cart could be contained inside a div with a main role.

Here are two relevant pages from WAI.

The roles model

The grid role

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.