HTML <th> scope Attribute
ဥပမာ
ခေါင်းစီးဆဲလ်နှစ်ခုသည် ကော်လံများအတွက် ခေါင်းစီးဖြစ်ကြောင်း သတ်မှတ်ပါ-
<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
။ _
Browser ပံ့ပိုးမှု
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 |
❮ HTML <th> tag