Personally, I feel it is better to use ul li here Display is table, which is not easy to use and quite troublesome. I just tried it. And this can easily mislead other developers, so it is not recommended to use it that way.
After checking the information, I found that if it is a data-type table, you can use the table tag. If it is just to display the column style of the table, there is no need to use table. You can use display:table or display:flexbox to achieve it.
From a semantic perspective, it is recommended to use table if the presentation form is a table. The <table> tag defines an HTML table. display: table; specifies the object as a table at the block element level, similar to the html tag <table>
Nest a sub-table or p, expand and hide it directly using css to control the display to none or block.
CSS is compatible, but the table does not conform to semantics. It depends on what to do,
Personally, I feel it is better to use ul li here
Display is table, which is not easy to use and quite troublesome. I just tried it. And this can easily mislead other developers, so it is not recommended to use it that way.
After checking the information, I found that if it is a data-type table, you can use the table tag. If it is just to display the column style of the table, there is no need to use table. You can use display:table or display:flexbox to achieve it.
From a semantic perspective, it is recommended to use table if the presentation form is a table. The
<table> tag defines an HTML table.
display: table; specifies the object as a table at the block element level, similar to the html tag <table>