Stopbyte

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

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

1 Like

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.