If you're using HTML tables within your web page and you want to add a color border, this HTML code will guide you.Below is HTML code of a table which has The background color set to #EAE8E8 and the border color is set to #C6C6C6.
To set the HTML table border color we use the BORDERCOLOR property of table and for table background we use BGCOLOR property of Table column.
Edit the text indicated in bold to suit your needs.
To set the HTML table border color we use the BORDERCOLOR property of table and for table background we use BGCOLOR property of Table column.
<TABLE BORDER="1" BORDERCOLOR="#C6C6C6" CELLPADDING="4" ALIGN="Center" WIDTH="50%">
<TR>
<TD BGCOLOR="#EAE8E8">Your Text</TD>
</TR>
</TABLE>
<TR>
<TD BGCOLOR="#EAE8E8">Your Text</TD>
</TR>
</TABLE>
Edit the text indicated in bold to suit your needs.
Display Will Look As :--
This is table with border and background color |