سمة رؤوس HTML <th>

❮ علامة 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>