• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

pros and cons of DIV based web page?

Hi, what is pros and cons of DIV based web page? and which better the TABLE based html page or DIV based html page?
7 Solutions
Abdu_AllahAuthor Commented:
Guys I need your personal opinions and what do you use?
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Gurvinder Pal SinghCommented:
i normally use tables because they are easier to manage.

We can use <div> or <table> with respect to our needs.

I am using <div> more than table, because, if will take a little bit more loading time as the <table> depth increses.


<table><tr><td><table><tr><td><table> .... etc (<table> inside table row again <table> inside table row.. so as the depth increases it will affect the loading time.. not that..but will impact loading speed.)

An advantage for the <table> is we can well organize the web pages with <tables> other than <div>'s

and <div> is haivng a line break, so we need to use styles if we want to display to <div>'s in the same line, if we are using <table>, we can do with two table rows.

I think, you will get some idea now..

If you need any more details, please let me know.

Thank you

I prefer to use <div>, because <div>'s is more flexible. You have to know CSS, but if you do you can place a <div> pretty much wherever you like on your page by changing a few CSS-properties. If you use <table> you basically have to change most of the structure of the table to make any larger changes by copy-paste content from one cell to another and maybe change a lot of rowspans and colspans.

If you're using <table> on the other hand, you don't have to know any CSS to create a good design.

So, my advise is to use <div> if you're good at CSS and <table> if you're not.

Hope it helped.
I generally use <table> unless a specific requirement from customers for <div>.

<table> is easy to manage. but if your customers are specific about page size specific then go for div. it will help when you show large data in a single page

Carl TawnSystems and Integration DeveloperCommented:
I used to use tables for layout, but nowadays only use them for actual tabular data. Mainly this is because of accessibility guidelines (Section 508 in the US) and the way that screen reader software interprets page data. If you're dealing with public sector (i.e. government, NHS, universities, etc) then this becomes a major issue.

Styling and layout with DIV elements takes a bit of getting used to and takes a little more effort than sticking everything in a table, but the effort is worth it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now