Create simple table with THEAD,TFOOT and TBODY tags and insert it into plain table with just TR and TD. You will get broken table. Here is an example: https://jsfiddle.net/5kbwkzq8/5/