Divide HTML table rows into labelled sections

后端 未结 5 1803
难免孤独
难免孤独 2021-01-03 19:54

Is there a valid way to divide a table\'s rows into sections, with a label identifying that section?

For example, something like the code below, but with a header o

5条回答
  •  误落风尘
    2021-01-03 20:52

    HTML5 specification isn't saying there can be only one section. Your code is OK. One more example:

    Fruits Vitamin A Vitamin C
    Apples 98 ui 8.4 mg
    Oranges 295 ui 69.7 mg
    Bananas 76 ui 10.3 mg

提交回复
热议问题