HTML <textarea> Tag
ဥပမာ
စာကြောင်းပေါင်းစုံ စာသားထည့်သွင်းမှု ထိန်းချုပ်မှု (စာသားဧရိယာ):
<label for="w3review">Review of W3Schools:</label>
<textarea
id="w3review" name="w3review" rows="4" cols="50">
At w3schools.com you will learn how to make a website. They offer free tutorials in all web development technologies.
</textarea>
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
tag သည် <textarea>
စာကြောင်းပေါင်းများစွာ စာသားထည့်သွင်းမှု ထိန်းချုပ်မှုကို သတ်မှတ်သည်။
မှတ်ချက်များ သို့မဟုတ် သုံးသပ်ချက်များကဲ့သို့ အသုံးပြုသူထည့်သွင်းချက်များကို စုဆောင်းရန်အတွက် အစိတ်အပိုင်း ကို <textarea>
ဖောင်တစ်ခုတွင် အသုံးပြုလေ့ရှိသည်။
စာသားဧရိယာသည် အကန့်အသတ်မရှိသော စာလုံးအရေအတွက်ကို ထိန်းထားနိုင်ပြီး စာသားသည် ပုံသေအကျယ်ဖောင့် (များသောအားဖြင့် ချောစာ) ဖြင့် ပြန်ဆိုသည်။
စာသားဧရိယာ၏ အရွယ်အစားကို ရည်ညွှန်းချက်များ (သို့မဟုတ် CSS ဖြင့်) သတ်မှတ် <cols>
ပေးသည် <rows>
။
name
ဖောင်တင်ပြီးနောက် ဖောင်ဒေတာကို ရည်ညွှန်းရန် ရည်ညွှန်းချက် လိုအပ်သည် ( attribute ကို ချန်လှပ်ထားပါက စာသား
name
ဧရိယာမှ ဒေတာကို တင်ပြမည်မဟုတ်ပါ)။
စာသား id
ဧရိယာကို အညွှန်းတစ်ခုနှင့် ဆက်စပ်ရန် ရည်ညွှန်းချက် လိုအပ်သည်။
အကြံပြုချက်- အကောင်းဆုံးဝင်ရောက်နိုင်မှုအလေ့အကျင့်များအတွက် <label> တဂ်ကို အမြဲထည့်ပါ ။
Browser ပံ့ပိုးမှု
Element | |||||
---|---|---|---|---|---|
<textarea> | Yes | Yes | Yes | Yes | Yes |
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
autofocus | autofocus | Specifies that a text area should automatically get focus when the page loads |
cols | number | Specifies the visible width of a text area |
dirname | textareaname.dir | Specifies that the text direction of the textarea will be submitted |
disabled | disabled | Specifies that a text area should be disabled |
form | form_id | Specifies which form the text area belongs to |
maxlength | number | Specifies the maximum number of characters allowed in the text area |
name | text | Specifies a name for a text area |
placeholder | text | Specifies a short hint that describes the expected value of a text area |
readonly | readonly | Specifies that a text area should be read-only |
required | required | Specifies that a text area is required/must be filled out |
rows | number | Specifies the visible number of lines in a text area |
wrap | hard soft |
Specifies how the text in a text area is to be wrapped when submitted in a form |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<textarea>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဖြစ်ရပ်ဂုဏ်တော်များ
<textarea>
tag သည် HTML ရှိ Event Attributes များကိုလည်း ပံ့ပိုး ပေးပါသည် ။
နောက်ထပ် ဥပမာများ
ဥပမာ
ပုံသေ အရွယ်အစား ပြောင်းလဲမှု ရွေးချယ်မှုကို ပိတ်ပါ-
<html>
<head>
<style>
textarea {
resize: none;
}
</style>
</head>
<body>
<label for="w3review">Review of W3Schools:</label>
<textarea id="w3review" name="w3review" rows="4" cols="50">
At
w3schools.com you will learn how to make a website. They offer free tutorials
in all web development technologies.
</textarea>
</body>
</html>
ဆက်စပ်စာမျက်နှာများ
HTML DOM ရည်ညွှန်း- Textarea Object
CSS ကျူတိုရီရယ်- ပုံစံပုံစံပုံစံများ
မူရင်း CSS ဆက်တင်များ
တစ်ခုမှ