HTML - table background color.
HTML - table background color.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> |
