Proper definition for “tabular data” in HTML

前端 未结 2 655
孤独总比滥情好
孤独总比滥情好 2020-12-06 10:32

I have a pedantic argument that needs resolution.

As a proper koolaid drinker when it comes to HTML, I\'m all about semantic markup. As a result, of course I hate to

2条回答
  •  抹茶落季
    2020-12-06 10:51

    Wikipedia has some down-to-earth rules in its internal article-writing guidelines. They're far from an exhaustive definition but work well in real-world use IMO.

    • When tables are appropriate
    • When tables may not be appropriate

    The whole definition is worth reading, but one paragraph strikes me as especially nice:

    Before you format a list in table form, consider whether the information will be more clearly conveyed by virtue of having rows and columns. If so, then a table is probably a good choice. If there is no obvious benefit to having rows and columns, then a table is probably not the best choice.

提交回复
热议问题