DIV vs. Table, what is the right way to do it?

Posted by guru in September 23rd, 2007
Published in HTML

Everyone has their choices, some care about the right way to do it while others about the easier way.

CSS has revolutionized the web page designing process, its fun that way. DIV vs. TABLE when it comes to web designing is more of a confusion for some web page designers.

Simplicity is there with Tables, but with DIV there is flexibility and expandability. Use DIV and with a simple flick on your CSS file , your web page gets a whole new look. Using DIV you can explore new possibilities for web page designing for example, Table does not provide overlapping features like DIV.

The bottom line is that, if you want to take full advantages of CSS, there is only one option for you and that’s DIV.

When should I use Tables?
Some people have a misconception that using Tables slows down web page loading. There are places where Tables can do magic, use DIV doesn’t mean, ignore Tables completely. If you use Tables wisely it can save you a several lines of code. You should use Tables in places like DATA listing and places where you need to separate columns quickly.

As programmers are always looking for a flexible and expandable programs, using DIV as the main frame for your web page is the best thing you can do.

When should I use Tables as main frame for my web page?
If you have a light static web page, that can even do without using an external CSS file, you can use Tables as the main frame for your web page.

Conclusion:
In fact Tables and DIVs are two different things, aim to serve two different purposes, although sometimes its possible to use them exchangeably, its never a good idea to mix them up. Use DIV for making layers or divisions your web page like, header, side bars and footer. Use tables when you need to list data in a spreadsheet-like interface.

1 person has commented to this post.

Follow-up this post comment rss or leave a trackback
mygif
crazy wrote,

well i gotta change my habit of using tables, it sucks most of the time.

Leave A Reply Below

for "DIV vs. Table, what is the right way to do it?"

 Username (*required)

 Email Address (*hidden)

 Website (*optional)

 Website (*optional)

Social Feeds

Topics Search

Main Translator

French

German version

Spanish version

Italian version

Categories

Recent Articles

Recent Posts

Recent Commentes

August 2008
M T W T F S S
« Oct    
 123
45678910
11121314151617
18192021222324
25262728293031

Blogroll

Navigation

Share!

Add to Technorati Favorites
Add to Google Add to Windows Live