Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:22 PM
J Vaughan
Guest
 
Posts: n/a
Default <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?

  #2  
Old July 20th, 2005, 09:22 PM
Brian
Guest
 
Posts: n/a
Default Re: <th> for rows?

J Vaughan wrote:[color=blue]
>
> <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?[/color]

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

  #3  
Old July 20th, 2005, 09:22 PM
Brian
Guest
 
Posts: n/a
Default Re: <th> for rows?

J Vaughan wrote:[color=blue]
>
> <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?[/color]

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

  #4  
Old July 20th, 2005, 09:24 PM
Bean
Guest
 
Posts: n/a
Default Re: <th> for rows?

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:[color=blue]
> 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?[/color]

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles