for layouts is evil right? [closed]

2020-02-11 12:28发布

Just found out that this site uses tables for layouts. Does anyone find this disturbing considering the nature of the site? I really don't know what to believe anymore :-)

http://www.w3schools.com/

标签: html layout
5条回答
ら.Afraid
2楼-- · 2020-02-11 13:09

More eloquent people than I have made some compelling arguments to the contrary. Here's some recent (because that's important when it comes to browser technology) essays to check out:

查看更多
女痞
3楼-- · 2020-02-11 13:17

Tables are good for displaying data that normally fits...in a table. Think a list of Names with associated attributes.

Tables are evil for layout. Layout should be done via CSS.

Separation of data and display is an important concept in all of computer science.

查看更多
你好瞎i
4楼-- · 2020-02-11 13:19

Yeah I would steer clear of it. Tables should be reserved for tabulated data :) Try to layout sites using div's and CSS

查看更多
欢心
5楼-- · 2020-02-11 13:20

I think this page is the most ironic: An introduction to CSS (completely built in tables). It doesn't fill you with much confidence...

查看更多
叛逆
6楼-- · 2020-02-11 13:27

It depends on what you are using the table for. And how many tables you are using.

If you are using the table to display tabular data, it is the best. Otherwise, use the modern stuff.

There are times where it is OK to violate purity.

查看更多
登录 后发表回答
向帮助了您的知道网友说句感谢的话吧!