+ 2
div vs. table which is better and why?
7 Answers
+ 4
They're completely different. Table has one function: to contain tabular data. Should not be used for layout.
+ 3
You should use div containers to structure your website. It's easier to style div containers. Webdesigner used tables to create a website in past.
+ 3
HTML5 introduced many new tags that should be used where you'de "normally" use divs. <div> has no semantic meaning, whereas <header>, <nav>, <section>, <article>, <footer> both act as containers and describe content better.
0
@^^$
0
I prefer <div> to table because it's easier and clear to style <div> than table
- 2
i used tables for lay-out
- 2
The way i see it..Its just how creative your are.