How do you center a table in HTML?

Answer

Add
margin: 0px auto; to the style attribute of the table.

e.g.
<table style='margin: 0px auto;'></table>