When and Where should i use Table or Div in HTML page?


(afree) #1

I am wondering what would be best using DIV’s or Table’s would be appropriate for my HTML page?


(jms) #2

Well…i believe it depends on your requirements. use Tables if you need to structure Data on the page (as a table), use DIV in other cases. (DIV usually behave like a simple panel (elements container) without any structuring (most of the time).

NOTE: sometimes you may re-style (CSS) your DIV’s to behave like Tables and vise versa.