HTML <th> कार्यक्षेत्र विशेषता
उदाहरण
निर्दिष्ट करें कि दो हेडर सेल कॉलम के लिए हेडर हैं:
<table>
<tr>
<th></th>
<th scope="col">Month</th>
<th scope="col">Savings</th>
</tr>
<tr>
<td>1</td>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>2</td>
<td>February</td>
<td>$80</td>
</tr>
</table>
परिभाषा और उपयोग
scope
विशेषता निर्दिष्ट करती है कि हेडर सेल कॉलम, रो या कॉलम या रो के समूह के लिए हेडर है या नहीं ।
नोट:scope
सामान्य वेब ब्राउज़र में विशेषता का कोई दृश्य प्रभाव नहीं होता है, लेकिन इसका उपयोग स्क्रीन रीडर द्वारा किया जा सकता है ।
ब्राउज़र समर्थन
Attribute | |||||
---|---|---|---|---|---|
scope | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
<th scope="col|row|colgroup|rowgroup">
गुण मान
Value | Description |
---|---|
col | Specifies that the cell is a header for a column |
row | Specifies that the cell is a header for a row |
colgroup | Specifies that the cell is a header for a group of columns |
rowgroup | Specifies that the cell is a header for a group of rows |
एचटीएमएल <वें> टैग