Friday, July 5, 2002
Day 20: Providing a summary for tables
Mark PilgrimThe final piece of marking up tables is providing a summary. The summary of a table is never displayed in visual browsers; it is exclusively designed for screen readers and speech browsers. It is exactly what it sounds like: a summary, a longer description than the caption. It is usually read immediately before the caption.
Find "draw the month and year" in system.verbs.builtins.radio.weblog.drawCalendar. Add a summary attribute to the code so it reads as follows:
add ("<table summary=\"Monthly calendar with links to each day's posts\" cellspacing=\"0\" border=\"0\" class=\"hCalendarTable\">"); indentLevel++