Attribute အတွက် HTML <output>
ဥပမာ
တွက်ချက်မှုတစ်ခုလုပ်ဆောင်ပြီး <output> element တွင် ရလဒ်ကိုပြသသည်-
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" value="50">
+<input type="number" id="b" value="25">
=<output name="x" for="a b"></output>
</form>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက် သည် for
တွက်ချက်မှုရလဒ်နှင့် တွက်ချက်မှုတွင် အသုံးပြုသည့် အစိတ်အပိုင်းများကြား ဆက်စပ်မှုကို သတ်မှတ်ပေးသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
for | 10.0 | 13.0 | 4.0 | 7.0 | 11.5 |
အထားအသို
<output for="element_id">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
element_id | Specifies a space separated list of ids of one or more elements that specifies the relationship between the result of the calculation, and the elements used in the calculation |
❮ HTML <output> tag