WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Data Table and Forms Question

for

From: Jukka K. Korpela
Date: Jan 14, 2005 11:14AM


On Fri, 14 Jan 2005, lubow_scott wrote:

> We have a data table on a web page and each table cell has a form field
> in it. The form fields are associated with the column header for the
> specific column and the form fields also relate to each other across the
> row. Can you use scope for data tables and label for form fields
> together?

You can use both, but they are quite independent of each other - two
distinct structures, which are here used together. Without a real example
that shows the actual structure, it's hard to tell much more. But if you
have an array of input elements, then it becomes difficult, since you
cannot assign individual labels to them then, except by putting a label
into each cell
(foo bar: )

> <input value="" name="X_1" type="text" class="c3input"
> style="width:175">

Fixed widths should be avoided. Well, conforming browsers ignore
width:175 since it's syntactically incorrect, but "successfully" setting
width to 175px would be problematic - especially to people who need a
large font size.

--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/