Html – why is the table border not showing in this html table


I have a simple html table like this:

I want to have a border with color #990000 outside the entire table. So I have made a table outside the table and given it border color of #990000. But still I dont see a border color.

Best Solution

Use the border property with CSS style and give it the color. I got rid of the nested tables in your example as well.

td {
    border: solid 2px lightgrey;
<table style="border: 5px solid #990000; border-collapse: collapse">

That preserves your borders on your cells...