8.29.2012

Difference between div and table

Difference between div and table
S.No Div Table
1
Purpose:
To display block of HTML and data
Purpose:
To display Text and in fewer cases images as well.
2
Layout / Type:
DIV is floating type and can divide our webpage into multiple divisions..So,Divs are more flexible--as they do not strict to tabular layouts.
Layout / Type:
Table is Fixed type and consists of table rows(tr), table data(td),table header(th). .So,tables are strict for those layouts which are more tabular.
3
Search Engine Friendly:
Div is better for SEO
Search Engine Friendly:
Table is not Search engine friendly
4
Loading Time:
The loading time of DIV based website is faster than Table based website.
Loading Time:
The loading time of table based website is not faster than DIV based website.
5
Website Alignment:
In DIV,we can control the website alignment by CSS which is comparatively easier than table
Website Alignment:
Table does not make use of CSS, hence website alignment is comparatively difficult
6
Website Changes:
In Div, designers can make a single change to the CSS and it will modify the entire website.
Website Changes:
In table, designers cannot make a single change as like DIV
7
Does CSS Knowledge required ?For Div based layout, we should have knowledge about CSS. Otherwise, we cannot control the Div based website errors.
Does CSS Knowledge required ?
Table based website does not require CSS Knowledge in oder to control the website errors

No comments:

Post a Comment