ข้อมูลอ้างอิงHTML

HTML โดยตัวอักษร HTML ตามหมวดหมู่ รองรับ HTML Browser แอตทริบิวต์ HTML HTML Global Attributes เหตุการณ์ HTML HTML สี HTML Canvas HTML เสียง/วิดีโอ ชุดอักขระ HTML HTML Doctypes การเข้ารหัส URL HTML รหัสภาษา HTML รหัสประเทศ HTML ข้อความ HTTP วิธี HTTP ตัวแปลง PX เป็น EM แป้นพิมพ์ลัด


HTML <td> ส่วนหัวคุณสมบัติ

❮ แท็ก 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>