HTML <th> axis 屬性

HTML th 標籤參考手冊 HTML <th> 標籤

實例

帶有分類表頭單元格的 HTML 表格:

<table border="1" width="100%">
  <tr>
    <th axis="name">Name</td>
    <th axis="contact">Email</td>
    <th axis="contact">Phone</td>
    <th axis="contact">Address</td>
  </tr>
  <tr>
    <td>John Doe</td>
    <td>someone@example.com</td>
    <td>+45342323</td>
    <td>Rosevn 56,4300 Sandnes,Norway</td>
  </tr>
</table>


流覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

axis 屬性在普通的 Web 流覽器中沒有視覺效果,但可以通過螢幕閱讀器使用。


定義和用法

HTML5 不支持 <th> axis 屬性。

axis 屬性用於對表頭單元格進行分類。

axis 屬性可用於對相關的資訊列進行組合。


語法

<th axis="category_name">

屬性值

描述
category_name 規定類別的名稱。


HTML th 標籤參考手冊 HTML <th> 標籤