HTML <td> ส่วนหัวคุณสมบัติ
ตัวอย่าง
ระบุ <th> องค์ประกอบแต่ละ <td> องค์ประกอบที่เกี่ยวข้องกับ:
<table>
<tr>
<th id="name">Name</th>
<th id="email">Email</th>
<th id="phone">Phone</th>
<th id="addr">Address</th>
</tr>
<tr>
<td headers="name">John Doe</td>
<td headers="email">[email protected]</td>
<td headers="phone">+45342323</td>
<td headers="addr">Rosevn 56,4300 Sandnes,Norway</td>
</tr>
</table>
ความหมายและการใช้งาน
แอตทริบิวต์headers
ระบุเซลล์ส่วนหัวอย่างน้อยหนึ่งเซลล์ที่เกี่ยวข้องกับเซลล์ตาราง
หมายเหตุ:คุณลักษณะheaders
นี้ไม่มีเอฟเฟกต์ภาพในเว็บเบราว์เซอร์ทั่วไป แต่สามารถใช้โดยโปรแกรมอ่านหน้าจอ
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<td headers="header_id">
ค่าแอตทริบิวต์
Value | Description |
---|---|
header_id | Specifies a space-separated list of id's to one or more header cells the table cell is related to |
❮ แท็ก HTML <td>