html table text center code example
Example 1: css center in td
td
{
text-align: center;
vertical-align: middle;
}
Example 2: how to center a table in html
<table style="border:1px solid black;margin-left:auto;margin-right:auto;">
td
{
text-align: center;
vertical-align: middle;
}
<table style="border:1px solid black;margin-left:auto;margin-right:auto;">