WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: forms & th & label

for

Number of posts in this thread: 2 (In chronological order)

From: Robin Brunner
Date: Wed, Aug 05 2009 5:20PM
Subject: forms & th & label
No previous message | Next message →

Inside form and table tags, I have:
<tr>
<th scope="row" align="right">
<label for="name">Your Name: </label></th>
<td align="left">
<input type="text" id="name" name="name" size="35"
title="Enter Your Name">
</td>
</tr>
<tr>
<th scope="row" align="right">
<label for="address">Address: </label></th>
<td align="left">
<input type="text" id="address" name="address" size="40"
title="Enter Your Address">
</td>
</tr>
??If the form is a table, and I use <th>,
how do the label elements in the table headers
and id attributes in the input elements help,
or do they??
THANKS, R
Robin Switzer Brunner
CompuPlace Director
601 Second Ave SE #3
Cedar Rapids, Iowa 52401-1305
319-362-4284
= EMAIL ADDRESS REMOVED =
www.ecc-cr.net

From: J. B-Vincent
Date: Wed, Aug 05 2009 5:25PM
Subject: Re: forms & th & label
← Previous message | No next message

Robin: This sounds like a table structure used only for formatting, not for displaying rows and columns of data. If that is the case, you shouldn't use <th> markup.

Jane Vincent, Center for Accessible Technology


--- On Wed, 8/5/09, Robin Brunner < = EMAIL ADDRESS REMOVED = > wrote:

From: Robin Brunner < = EMAIL ADDRESS REMOVED = >
Subject: [WebAIM] forms & th & label
To: "WebAIM Discussion List" < = EMAIL ADDRESS REMOVED = >
Date: Wednesday, August 5, 2009, 4:18 PM

Inside form and table tags, I have:
<tr>
    <th scope="row" align="right">
     <label for="name">Your Name: </label></th>
    <td align="left">
     <input type="text" id="name" name="name" size="35"
      title="Enter Your Name">
    </td>
</tr>
<tr>
    <th scope="row" align="right">
     <label for="address">Address: </label></th>
    <td align="left">
     <input type="text" id="address" name="address" size="40"
      title="Enter Your Address">
    </td>
</tr>
??If the form is a table, and I use <th>,
how do the label elements  in the table headers
and id attributes in the input elements help,
or do they??
THANKS, R
Robin Switzer Brunner
CompuPlace Director
601 Second Ave SE #3
Cedar Rapids, Iowa 52401-1305
319-362-4284
= EMAIL ADDRESS REMOVED =
www.ecc-cr.net