HTML <th> ส่วนหัวคุณสมบัติ
ตัวอย่าง
ระบุ <th> องค์ประกอบแต่ละเซลล์ส่วนหัวเกี่ยวข้องกับ:
<table>
<tr>
<th id="name" colspan="2">Name</th>
</tr>
<tr>
<th headers="name">Firsname</th>
<th headers="name">Lastname</th>
</tr>
</table>
ความหมายและการใช้งาน
แอตทริบิวต์headers
ระบุเซลล์ส่วนหัวอย่างน้อยหนึ่งเซลล์ที่เกี่ยวข้องกับเซลล์ส่วนหัว
หมายเหตุ:คุณลักษณะheaders
นี้ไม่มีเอฟเฟกต์ภาพในเว็บเบราว์เซอร์ทั่วไป แต่สามารถใช้โดยโปรแกรมอ่านหน้าจอ
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<th headers="header_id">
ค่าแอตทริบิวต์
Value | Description |
---|---|
header_id | Specifies a space-separated list of id's to one or more header cells the header cell is related to |
❮ แท็ก HTML <th>