Midkynte is correct. The table will automatically use the page background color, so you will have to manually tell the table what color you want. Now why you'd want a black background I do not know, but that should clear it up for you.

Add the attribute bgcolor to the table tag. Remember not to use color words like "Black" or "Blue" as they will render different for each end user. Instead use "FFFFFF" for white or "000000" for black as an example.

bgcolor="color"

Good way to choose your color and get the code for it.

https://htmlcolorcodes.com/