سمة رؤوس 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>