Jump to content


Photo

is <tbody> necessary for good coding?


  • Please log in to reply
4 replies to this topic

#1 Chat

Chat
  • Members
  • PipPip
  • Member
  • 28 posts
  • LocationBirmingham (UK)

Posted 28 July 2006 - 01:05 PM

is <tbody> necessary or recommended for good coding of tables? i have no thead or tfoot, should i have a tbody though?

#2 foreverhex

foreverhex
  • Members
  • PipPipPip
  • Advanced Member
  • 91 posts

Posted 28 July 2006 - 01:34 PM

Im not really sure why you would use it other than to seperate your tr and td tags. That way you can have a class tag in just a sertain area. I don't use them at all though.

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 July 2006 - 01:38 PM

It's all about accessibility, so it could be construed as a recommended practice.

http://www.yourhtmls...essibility.html
Legend has it that reading the manual never killed anyone.
My site

#4 Chat

Chat
  • Members
  • PipPip
  • Member
  • 28 posts
  • LocationBirmingham (UK)

Posted 28 July 2006 - 04:47 PM

It's all about accessibility, so it could be construed as a recommended practice.

http://www.yourhtmls...essibility.html


It could be an accessibility advantage, preventing a user from setting undesirable browser options, but if the user knows what they're doing then maybe it's an accessibility problem to restrict/define things so much...

i'm not really sure, but i never like to trust a site that gets so mesed up when u click view > text size > largest  ::)

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 July 2006 - 04:56 PM

It could be an accessibility advantage, preventing a user from setting undesirable browser options, but if the user knows what they're doing then maybe it's an accessibility problem to restrict/define things so much...


huh? It's accessible in the sense that it makes tables more comprehensible to screen readers, i.e. vision-impaired users. I'm hard pressed to see how that could be a problem.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users