467,099 Members | 1,124 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,099 developers. It's quick & easy.

<th> for rows?

Hi. Simple question here. I am using a table (not for layout) as
follows:

<table>
<tr><th>Name:</th><td>Fred</td></tr>
<tr><th>Tel:</th><td>11111111</td></tr>
<tr><th>email:</th><td>f@example.invaild</td></tr>
</table>

Is it correct to use <th> in this context? Obviously the page displays
as I want, but is it the right way of doing it?

Jul 20 '05 #1
  • viewed: 2112
Share:
3 Replies
J Vaughan wrote:

<table>
<tr><th>Name:</th><td>Fred</td></tr>
<tr><th>Tel:</th><td>11111111</td></tr>
<tr><th>email:</th><td>f@example.invaild</td></tr>
</table>

Is it correct to use <th> in this context?


Absolutely. But you should consider adding markup to specify the
heading scope.

http://www.w3.org/TR/html401/struct/....html#h-11.4.1
http://www.w3.org/TR/html401/struct/...tml#adef-scope

This a question of markup, not style. x-posted to ciwah, follow-ups set.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
J Vaughan wrote:

<table>
<tr><th>Name:</th><td>Fred</td></tr>
<tr><th>Tel:</th><td>11111111</td></tr>
<tr><th>email:</th><td>f@example.invaild</td></tr>
</table>

Is it correct to use <th> in this context?


Absolutely. But you should consider adding markup to specify the
heading scope.

http://www.w3.org/TR/html401/struct/....html#h-11.4.1
http://www.w3.org/TR/html401/struct/...tml#adef-scope

This a question of markup, not style. x-posted to ciwah, follow-ups set.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
I think that is acceptable, since the text in the <th>'s could be
described as "headings" for the <td>'s next to them.

Regards
Arno Bean

J Vaughan wrote:
Hi. Simple question here. I am using a table (not for layout) as
follows:

<table>
<tr><th>Name:</th><td>Fred</td></tr>
<tr><th>Tel:</th><td>11111111</td></tr>
<tr><th>email:</th><td>f@example.invaild</td></tr>
</table>

Is it correct to use <th> in this context? Obviously the page displays
as I want, but is it the right way of doing it?


Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by El Diablo | last post: by
11 posts views Thread by Woolly Mittens | last post: by
3 posts views Thread by Luigi Donatello Asero | last post: by
16 posts views Thread by matt@mailinator.com | last post: by
36 posts views Thread by Roedy Green | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.