2
I want to make a table, where the <th> split into three, a line at the top and a line broken into two at the bottom, but I cannot separate the <th> in two like the <td> since we use the colspan, I tried to do some tricks, but it wouldn’t be good, because then I would have to be responsive, it is possible to make a table like this?
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>
No need to put 'solved' in the title of the question. You have already marked the answer as accepted and that is enough. :)
– emanuelsn
Thanks @emanuelsn! I am new here in the community, did not know this, rs.
– DevRyu
Quiet, man. Welcome to Sopt. :D
– emanuelsn