+ 2

div vs. table which is better and why?

7th Jul 2016, 5:07 PM
Sahil K. Gaba
Sahil K. Gaba - avatar
7 ответов
+ 4
They're completely different. Table has one function: to contain tabular data. Should not be used for layout.
7th Jul 2016, 6:42 PM
ZinC
ZinC - avatar
+ 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.
7th Jul 2016, 7:54 PM
Werner Fait
+ 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.
7th Jul 2016, 8:24 PM
ZinC
ZinC - avatar
0
@^^$
26th Oct 2016, 8:14 AM
gleirisdalton do Carmo de Almeida
0
I prefer <div> to table because it's easier and clear to style <div> than table
27th Oct 2016, 12:59 AM
victor eberechi
victor eberechi - avatar
- 2
i used tables for lay-out
9th Jul 2016, 7:53 AM
princemutungi
princemutungi - avatar
- 2
The way i see it..Its just how creative your are.
9th Jul 2016, 7:54 AM
princemutungi
princemutungi - avatar