標籤:char 修改 doctype 資訊 span lsp ott 網頁 code
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>這是我的第五個html代碼</title> 6 <!--可以通過bgcolor關鍵字修改背景顏色--> 7 <body bgcolor="#FF0000"> 8 <table border="1px" cellpadding="5px" cellspacing="5px"> 9 <!--10 <caption>學生資訊表</caption>11 -->12 <!--對齊不同,下面是下對齊,上面是上對齊-->13 <caption align="bottom">學生資訊表</caption>14 <!--15 <tr><th>姓名</th><th>年齡</th><th>性別</th><th>班級</th></tr>16 <tr><td>張三</td><td>18</td><td>男</td><td>一班</td></tr>17 <tr><td>李四</td><td>19</td><td>女</td><td>二班</td></tr>18 <tr><td>趙五</td><td>20</td><td>男</td><td>三班</td></tr>19 <tr><td>韓六</td><td>21</td><td>女</td><td>四班</td></tr>20 -->21 <tr><th>姓名</th><th>年齡</th><th>性別</th><th>班級</th></tr>22 <!--行合并,合并兩行-->23 <tr><td>張三</td><td>18</td><td>男</td><td>一班</td></tr>24 <tr><td colspan="2">李四</td><td>女</td><td>二班</td></tr>25 <!--列合并,合并兩列-->26 <tr><td rowspan="2">趙五</td><td>20</td><td>男</td><td>三班</td></tr>27 <tr><td>21</td><td>女</td><td>四班</td></tr>28 </table>29 </body>30 </head>31 </html>
我的第六個網頁製作:table標籤