Why do browsers insert tbody element into table elements?

后端 未结 2 1444
攒了一身酷
攒了一身酷 2020-11-22 05:23

I was playing around with some ideas using raw html and JQuery. One thing I did was to create an table element with a set of rows.

2条回答
  •  [愿得一人]
    2020-11-22 05:55

    Yes, tbody is the standard element indicating the body of a table. It is not required to put it in the markup, but it will be included in the DOM as you've seen.

提交回复
热议问题