# HTML 5. 基本表格製作 ### 製作 HTML 表格,你一定要認識的4個標籤: 1. `<table>` 2. `<tr>` table row 3. `<th>` table heading 4. `<td>` table data - row 表示為 橫向 / column 表示為 上下 ### 以 excel 為範例:  - 像是國家、年份、熊貓 這些就是標題,寫 `<th>` 其餘下列資料顯示則是 `<td>` ``` <h1>熊貓表格</h1> <table> <tr> <th>國家</th> <th>年份</th> <th>熊貓</th> </tr> <tr> <td>墨西哥</td> <td>1975</td> <td>迎迎、貝貝</td> </tr> <tr> <td>台灣</td> <td>2008</td> <td>團團、圓圓</td> </tr> <tr> <td>日本</td> <td>2011</td> <td>比力、仙女</td> </tr> </table> </body> ``` - 完成後,未上色的 HTML 表格就如下:  ###### tags: `2022 網頁開發全攻略教程`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up