Difference
between div and table
-
S.No Div Table 1 Purpose:To display block of HTML and dataPurpose: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 SEOSearch Engine Friendly:Table is not Search engine friendly4 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 tableWebsite Alignment:Table does not make use of CSS, hence website alignment is comparatively difficult6 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 DIV7 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