|
|
|
Table Row
To add a row in a table, <tr> ... </tr> tags are used. TR stands for table row. In a table, for each row there will be a set of table row tags.
Example:
<table border=1>
<tr><td> Row Data </td></tr>
<tr><td> Row Data </td></tr>
</table>
Above code indicates a table with two rows. If any attributes are to be given, we can give them in the <tr> tag.
Background color
To add background color to any row like this
<table>
<tr bgcolor='#f1f1f1'><td>Data here</td></tr>
<tr><td>Data here</td></tr>
</table>
Output is here
HTML Table
| Table Row
| Table Data
| Table Heading
| |
|
|
|
|
|