The attributes of the <tr> tag are used to set the properties of each row in the table, as shown in the following table:
The <tr> tag attribute of the table
| Attributes | describe |
| align | Horizontal alignment of row content |
| Valign | Vertical alignment of row content |
| bgcolor | Background color of rows |
| bordercolor | Line border color |
| bordercolorlight | The bright border color of the row |
| bordercolordark | Line dark border color |
Set the color of the line background.
01 <!-- -------------------------------------------------------------------------------------------------------------------------
02 <!-- File example: 10-18.htm -->
03 <!-- File description: Set the color of the line background-->
04 <!-- -------------------------------------------------------------------------------------------------------------------------
05 <html>
06 <head>
07 <title>Set the color of the line background</title>
08 </head>
09 <body>
10 <h1>Mainstream web design software</h1>
11 <table border=3 width=400 height=100 bordercolor=#336699>
12 <tr bgcolor=#00ffff>
13 <td>Web Image Software</td><td>fireworks</td>
14 </tr>
15 <tr>
16 <td>Web page production software</td><td>dreamweaver</td>
17 </tr>
18 <tr>
19 <td>Web animation software</td><td>flash</td>
20 </tr>
21 </table>
22 </body>
23 </html>
Document descriptionThe row tag <tr> is defined.