Here, you will see how to specifies the table back ground color in html page. The <table > is a html tag, it has a bgcolor attributes. The bgcolor attributes is used to set the background color of table.
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>HTML is a markup language</title> </head> <body> <h1>HTML table back ground color.</h1> <table bgcolor="gray"> <tr><td>Name</td><td>City</td></tr> <tr><td>Bharat Gangwar </td><td>Bly</td></tr> <tr><td>Ankit</td><td>Lucknow</td></tr> </table> </body> </html> |

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.