HTML table is an arrangement of data in rows and columns.
HTML Tables allow us to arrange data like images, text, and numbers into rows and columns.
You can create a table using a <table> tag in which <tr> tag is used to create rows and <td> tag is used to create columns inside a row. The header for the group of table cells is defined using the <th> element. By default, headings of the table are bold and centered.
The background-color property is used to add the background color to the table.
You can change the background color of a table row, you just have to apply the CSS background-color property to the table row (i.e. the
tr tag).
Similarly to change the background color of a single cell, you can apply the same code to the table cell(i.e. the td).
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok