I want to make a table, where <th>
separates into three, one row on top and one row broken in two below, but I can not separate the <th>
in two as <td>
since we use the colspan
, I tried to do some gambiarras, but it would not be good, because then I would have to be responsive, is it possible to make a table like that?
My code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TEST</title>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>
ITEM A
</th>
<th>
ITEM B
</th>
<th colspan="2">
ITEM C
<p>ITEM D | ITEM E<p>
</th>
</tr>
</thead>
<tbody>
<td>
A
</td>
<td>
B
</td>
<td>
C1
</td>
<td>
C2
</td>
</tbody>
</table>
</body>
</html>