HTML အကိုးအကား

အက္ခရာဖြင့် HTML HTML အမျိုးအစားအလိုက် HTML Browser ပံ့ပိုးမှု HTML အရည်အချင်းများ HTML ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ HTML ပွဲများ HTML အရောင်များ HTML Canvas HTML အသံ/ဗီဒီယို HTML အက္ခရာအစုံများ HTML Doctypes HTML URL ကုဒ် HTML ဘာသာစကားကုဒ်များ HTML နိုင်ငံကုဒ်များ HTTP မက်ဆေ့ခ်ျများ HTTP နည်းလမ်းများ PX မှ EM Converter ကီးဘုတ်ဖြတ်လမ်းများ


HTML <button> form Attribute

❮ HTML <button> တဂ်

ဥပမာ

ဖောင်တစ်ခု၏ အပြင်ဘက်တွင်ရှိသော ခလုတ်တစ်ခု (သို့သော် ဖောင်၏ အစိတ်အပိုင်းတစ်ခု ဖြစ်နေသေးသည်)။

<form action="/action_page.php" method="get" id="form1">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname">
</form>

<button type="submit" form="form1" value="Submit">Submit</button>

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

ရည်ညွှန်းချက် သည် formခလုတ်ပိုင်ဆိုင်သည့်ပုံစံကို သတ်မှတ်ပေးသည်။

ဤ attribute ၏တန်ဖိုး သည် တူညီသောစာရွက်စာတမ်းရှိ element တစ်ခု၏ idattribute နှင့် တူညီရပါမည် ။ <form>


Browser ပံ့ပိုးမှု

ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။

Attribute
form 10.0 16.0 4.0 5.1 9.5

အထားအသို

<button form="form_id">

ရည်ညွှန်းတန်ဖိုးများ

Value Description
form_id Specifies the form element the <button> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document.

❮ HTML <button> တဂ်