Divs vs tables for tabular data

前端 未结 6 1560
悲哀的现实
悲哀的现实 2020-12-06 12:21

Yes, another divs vs tables questions...

I read all over the place that \"try to use divs instead of tables\", but I have an application that displays data that is t

6条回答
  •  暖寄归人
    2020-12-06 12:33

    Use tables for tabular data. The knock against tables has been when they've been used solely for layout purposes. They have their own purpose, and it's tabular data. Divs have no semantic meaning, and shouldn't be used for tabular data.

提交回复
热议问题