Running tidy 5.6 on Mac OS using CLI Command run: tidy test-output.html > droptables.html --drop-empty-elements yes In the HTML, there are empty Table elements like <td></td>. It doesn't remove them.