4 ms·
Because tables were not made for layout. They were made to present data in tabular form, and it's still perfectly acceptable to use table tags to show data. But
by Achshar 13y ago
Because tables were not made for layout. They were made to present data in tabular form, and it's still perfectly acceptable to use table tags to show data. But using tables for layout is like chaining a bunch of cars to make a makeshift train, both can be used to travel, but a train was made to move a large number of people, and cars can only move small number of people. There are better tools available. That and tables result in some very ugly code structures. And see the upcoming flexbox model. I have tried it and it really feels more apt, a lot better than using floats and a hell of a lot better than tables when it comes to satisfying, good and perfectly predictable symmetric code.
- flomo 13y agoActually, the original W3C proposal for tables specifically mentioned using them for layout. I can't find a working link, but there's also a RFC: The HTML table model has evolved from studies of existing SGML tables models, the treatment of tables in common word processing packages, and looking at a wide range of tabular layout in magazines, books and other paper-based documents.[1] It was only later when table layouts began to be discouraged. [1] http://community.roxen.com/developers/idocs/rfc/rfc1942.html http://community.roxen.com/developers/idocs/rfc/rfc1942.html