Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6760185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:02:13+00:00 2026-05-26T14:02:13+00:00

DIVs or TABLEs? Here’s a question for front-end developers out there. Are table-less designs

  • 0

DIVs or TABLEs?

Here’s a question for front-end developers out there. Are table-less designs still required by most projects you work, or are simple tables structures accepted again? If so, were are tables appropriate? Data? Forms?

I recall, not more than a couple years ago, a designer friend of mine told me that I had to go table-less with all my HTML/XHTML. Everrrything tables. That DIV’s were the way to go. Being more of a backend PHP/MySQL developer I tried to jump on the band-wagon with a CakePHP project or two. I revamped most of the basic template pages/structures to use DIV’s with CSS2.

Now that I’m doing more CodeIgniter work… well, I’m now using tables with most of my Forms. I’ve had some issue with Divs. Tables are so much more structured and present me with less issues (IE6). Is this considered “bad code”? The company I’m working for has an image to withhold.

Thanks, Jeff

Edit: Please don’t downgrade the question. It’s a legitimate question from a non-designer needing to do front-end work. Maybe I should have asked , “Where is it appropriate to use tables in XHTML/CSS2?”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:02:14+00:00Added an answer on May 26, 2026 at 2:02 pm

    a designer friend of mine told me that I had to go table-less with all my HTML/XHTML.

    Tables have one defined purpose: Tabular data. For that purpose, using them was never wrong. Using divs or other elements to re-build a table for tabular data is, was, and always has been a fine example of cargo cult programming – adopting something (“Eeeek, tables are evil!”) without really understanding why.

    See this SO question for attempted definitions of what constitutes tabular data: Proper definition for "tabular data" in HTML

    What they should not be used for is layouting the page. That has really come out of style, and will probably never get back in style any more, seeing as they become less and less necessary as CSS improves.

    I personally find using tables for forms totally okay, by the way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are two examples. One with required result, using tables: http://jsfiddle.net/Dhn3B/ Another with divs:
[Meta-note:] I was browsing the question page, getting really tired of DIVS vs Tables
Duplicate: Tables instead of DIVs and Why not use tables for layout in HTML?
I am using slideDown animation to show some divs in a newly added table
I'm attempting to create divs in an table using jQuery. The table represents a
I'm trying to build an HTML email using DIVs instead of tables, and I'm
Maybe there is already a question about this subject, but I couldn't find it.
I have two divs inline-table(content and sidebar) and I would like to have the
I'm sending inline styles formatted tables to email bodies for sending out reports. The
How do you mimic table behavior with CSS and Divs? Is it possible to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.