HTML 表格案例
阿新 • • 發佈:2022-04-22
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <table border="1" width="400" height="200"> <caption><strong>優秀學生資訊表格</strong></caption> <tr> <th>年級</th> <th>姓名</th> <th>學號</th> <th>班級</th> </tr> <tr> <td rowspan="2">高三</td> <td>張三</td> <td>110</td> <td>三年二班</td> </tr> <tr> <td>李四</td> <td>120</td> <td>三年三班</td> </tr> <tr> <td>評語</td> <td colspan="3">你們都很優秀</td> </tr> </table> </body> </html>