سمة الامتداد <col> في HTML
مثال
هنا ، يجب أن يكون للعمودين الأولين لون خلفية باللون الأحمر:
<table>
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
التعريف والاستخدام
تحدد السمة
span
عدد الأعمدة التي
<col>
يجب أن يمتدها العنصر.
دعم المتصفح
Attribute | |||||
---|---|---|---|---|---|
span | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
<col span="number">
قيم السمات
Value | Description |
---|---|
number | Sets the number of columns a <col> element should span |
❮ علامة HTML <col>