1. HTML+DIV+CSS Zero Basic Quick Start to Making Enterprise Station Video Course _3 Table Tag <table>

 

HTML <table> tag

 

Definition and Usage

The <table> tag defines an HTML table.

A simple HTML table consists of a table element and one or more tr, th, or td elements.

The tr element defines the table row, the th element defines the header, and the td element defines the table cell.

More complex HTML tables may also include caption, col, colgroup, thead, tfoot, and tbody elements.

 

 

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>表行</title>
 6 </head>
 7 <body>
 8     <table border="1" width="200">
 9         <tr>
10             <</Name>thth > 
11              < td > Zhang San </ td > 
12          </ tr > 
13          < tr > 
14              < th > January salary </ th > 
15              < td > 10000 </ td > 
16          </ tr > 
17          < tr > 
18              < th > February Salary </ th > 
19              < td > 20000 </td>
20         </tr>        
21     </table>
22     <hr>
23 
24     <table border="1" width="200">
25         <tr>
26             <th>姓名</th>
27             <td>张三</td>
28         </tr>
29         <tr>
30             <th rowspan="2"Salary></th>
31             <td>10000</td>
32         </tr>
33         <tr>
34             <td>20000</td>
35         </tr>        
36     </table>    
37 </body>
38 </html>

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325357765&siteId=291194637