Div are used for designing the layout of the page where as tables are used on page to render the tabular data. We also can design the page in nested table but that increases the complexity of the code and makes the code size very high as compared to div.

Main difference between div and table is

Tables are used for tabular data rendering on page where div are used to design the layout of the page.

This is very pathetic practice if we use table for designing the page.
Bootstrap has introduced its styling and designing for the web page layout by providing classes, containers and different tags through which we use 12 div sections on one row inside the container. Through 12 divs we divide the page and make it responsive.

Websites coded through div are usually considered as cleaner and good practice where as table design increase the size of code and complexity.

Leave a Reply

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