Input
Output
<table border="1"> <thead> <tr> <th>Product</th> <th>Price</th> </tr> </thead> <tbody> <tr> <td>Laptop</td> <td>$1000</td> </tr> <tr> <td>Phone</td> <td>$500</td> </tr> </tbody> <tfoot> <tr> <td colspan="2">End of list</td> </tr> </tfoot> </table>