openwebwork/pg — pull request #117 by Alex-Jordan (2014-04-28 19:26:02+00:00)
Title: added pccTables.pl

pccTables.pl contains two separate table-making commands that can be used to create tables with accessibility in mind. Both types allow for css styling at many levels.

DataTable() is for data tables (tables that are truly meant to be read with rows and columns). Column and row header tags can be used for greater screen-reader usability. Captioning can be used which is also encouraged for accessibility.

LayoutTable() uses div boxes with the css display key set to various table types, instead of using HTML table tags. This way, if your 'table' is really just meant to be used for laying out an array (usually of images) and the xy-position of the cells is not actually important, then the screen readers won't confuse users by mentioning rows and columns.