"Michael Wilcox" <> wrote:
> Is the following code a good use of tables?
Opinions differ on the question whether a set of a field label, input
field pairs logically constitutes a table. If you ask me, it does.
On the practical side, for accessibility it would be useful to associate
the labels with the fields in markup, but this is also true (though not as
important) when tables are not used. Example:
<tr><td ...><label for="name" Name:</td><td><input id="name" type="text"
name="from"></td></tr>
By the way, your textarea lacks the required rows and cols attributes,
which means that the effect is unpredictable:
> <tr><td style="text-align: right;">Body:</td><td><textarea
> name="body"></textarea></td></tr>
> </table>
Better use some rows and cols attributes, even if you have a style sheet
that may override those dimensions.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html