Codium Logo Codium Logo
  • Services
  • Industries
  • Our Work
  • About
  • Blog
Blog

Why use Div tags instead of tables?

19 July 2012
You'll hear most web developers say that during web development that you should never use tables as a means of laying out the content of your web page, and a combination of Div tags and CSS is always recommended. To a new web developer, it might seem pointless or even a hindrance to use Div tags in comparison to the ease of use that tables present.

One of the most important parts of web development, or even any sort of code development is having easily readable code and comments where the code is not immediately obvious. Once you start creating large tables, with multiple columns and rows, the amount of nesting of tags that occurs can be quite excessive and to anyone trying to modify or improve your code will find their time vastly consumed with just finding trying to read it. Obviously this is inefficient use of web development time and is counterproductive web design, as the more time it takes to make simple changes, the more money is unnecessarily used.

On top of that, changing layouts becomes a far more time-consuming task when tables are used, as it is far harder to actually modify tables without something else breaking as well, which uses more development time on nonessential tasks. Most importantly, tables require more processing and cannot be as easily cached as CSS can be, this increase in load time could be what convinces a user that the website is not worth looking at. As a web developer, less users looking at content simply because of load times is a sign of poor web development, and using Div tags is not much more difficult than tables so it is an easily rectifiable problem.

All this raises the question, when should tables be used in web development? Well it might seem obvious, but they should be used when dealing with tabular data, such as anything you would display in a spreadsheet type manner. In the end, you can display your website, however you wish, but tables show a distinct lack of professionalism when it comes to web development and is just simply not as good as div tags.
2012
Keep reading

More from the blog

Has your business outgrown Excel? Seven signs, and what to do about each one
15 Oct 2026

Has your business outgrown Excel? Seven signs, and what to do about each one

Spreadsheets fail slowly, so nobody notices the day they stop being a tool and start being the system. Here are the signs, the fix...

What has changed in custom software development over the last 12 months
2 Sep 2026

What has changed in custom software development over the last 12 months

Software development continues to evolve quickly, but the last 12 months have seen some particularly significant changes in the wa...

How do you know which asset is about to fail before it does?
30 Jul 2026

How do you know which asset is about to fail before it does?

The failure was there in the data for three inspections before the breakdown. Nobody could see it because the data was spread acro...

All articles

Want to talk about your own project?

Tell us what's slowing your business down. One of our digital strategists will talk it through with you.

Get in touch Call 1300 887 103
Codium Logo
Codium Pty Ltd.
Ground Floor, 207 Greenhill Road
Eastwood, 5063
Adelaide, South Australia
  • 1300 887 103
  • sales@codium.com.au

Development

  • Software Development
  • Mobile Apps
  • Software Integration
  • Hardware Integration
  • Microsoft Access
  • Replace Spreadsheets

Managed Services

  • Software Takeover
  • Software Support (SLA)
  • Managed Hosting
  • Private AI Hosting
  • On-Premise AI

AI

  • AI Consulting
  • AI Reporting

Strategy

  • Technology Partner
  • UI / UX Design
  • Due Diligence (M&A)
  • Why Projects Succeed
  • What Software Costs
  • What AI Consulting Costs

Technologies

  • PHP · Laravel
  • JavaScript · Vue.js
  • AWS

Company

  • About Us
  • Industries
  • Our Work
  • Blog
  • Careers
  • Contact Us
  • Customer Feedback
  • Remote Support

© Codium Pty Ltd. All Rights Reserved.

  • Terms of Business
  • Privacy Policy
  • Quality Policy
  • Security Policy
  • Customer Experience Charter
Back Top
Codium
Services
All services Strategy
  • Technology Partner
  • UI / UX Design
  • Technology Due Diligence
  • Why Projects Succeed
  • What Software Costs
  • What AI Consulting Costs
Development
  • Software Development
  • Mobile App Development
  • Software Integration
  • Hardware Integration
  • Microsoft Access Databases
  • Replace Spreadsheets
Managed services
  • Software Takeover
  • Software Support (SLA)
  • Managed Hosting
  • Private AI Hosting
  • On-Premise AI
AI
  • AI Consulting
  • AI Reporting
Industries
All industries
  • Construction
  • Finance
  • Government
  • Health
  • Insurance
  • Manufacturing
  • Mining
  • Retail & E-commerce
  • Transport & Logistics
Our Work About Blog
Get in touch Call 1300 887 103