Why HTML tables are discouraged and HTML DIVs are promoted?

| By Webner

Sometimes we have a choice to use <table> tag or <div> tag but there are many advantages of using <div> tag over <table> tags.

Firstly when browser loads a table it waits for entire table text to reach browser side so it is slower to display pages with tables while DIVs start appearing on incremental basis. Then nested tables are a lot more complex code to write and manage than nested DIVs. Achieving web page responsiveness is much easier with DIVs than with tables.

Also table layout is good approach to show only tabular data but using div layout we can show any type of data like google map, any video or even tabular data.

Leave a Reply

Your email address will not be published. Required fields are marked *