Should Tables be avoided in HTML at any cost?

后端 未结 27 2470
生来不讨喜
生来不讨喜 2020-12-01 01:56

It is advisable to use tables in HTML pages (now that we have CSS)?

What are the applications of tables? What features/abilities does tables have that are not in CSS?

27条回答
  •  无人及你
    2020-12-01 02:29

    Although for some layouts using tables may seem simpler at first, when maintenance time comes using css pays off. Especially if you ever want to change the position of something, or if you want to use the same layout in several places.

    IMHO, tables should be used only when presenting tables. Never for layout purposes.

提交回复
热议问题