एचटीएमएल संदर्भ

वर्णमाला द्वारा HTML श्रेणी के अनुसार HTML एचटीएमएल ब्राउज़र समर्थन एचटीएमएल गुण HTML वैश्विक गुण एचटीएमएल घटनाक्रम एचटीएमएल रंग एचटीएमएल कैनवास एचटीएमएल ऑडियो/वीडियो एचटीएमएल कैरेक्टर सेट एचटीएमएल सिद्धांत एचटीएमएल यूआरएल एनकोड एचटीएमएल भाषा कोड एचटीएमएल देश कोड HTTP संदेश HTTP तरीके पीएक्स से ईएम कन्वर्टर कुंजीपटल अल्प मार्ग


एचटीएमएल <textarea> टैग


उदाहरण

एक बहु-पंक्ति पाठ इनपुट नियंत्रण (पाठ क्षेत्र):

<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>

नीचे और अधिक "इसे स्वयं आज़माएं" उदाहरण।


परिभाषा और उपयोग

<textarea>टैग एक बहु-पंक्ति पाठ इनपुट नियंत्रण को परिभाषित करता है

टिप्पणियों या समीक्षाओं जैसे उपयोगकर्ता इनपुट एकत्र करने के <textarea>लिए तत्व का उपयोग अक्सर एक रूप में किया जाता है।

एक पाठ क्षेत्र में असीमित संख्या में वर्ण हो सकते हैं, और पाठ एक निश्चित-चौड़ाई वाले फ़ॉन्ट (आमतौर पर कूरियर) में प्रस्तुत होता है।

<cols>टेक्स्ट क्षेत्र का आकार और <rows>विशेषताओं (या सीएसएस के साथ) द्वारा निर्दिष्ट किया जाता है ।

nameप्रपत्र सबमिट करने के बाद प्रपत्र डेटा को संदर्भित करने के लिए विशेषता की आवश्यकता होती है (यदि आप विशेषता को छोड़ देते हैं , nameतो टेक्स्ट क्षेत्र से कोई डेटा सबमिट नहीं किया जाएगा)।

idटेक्स्ट क्षेत्र को लेबल से जोड़ने के लिए विशेषता की आवश्यकता होती है 

युक्ति: सर्वोत्तम पहुंच-योग्यता प्रथाओं के लिए हमेशा <लेबल> टैग जोड़ें!


ब्राउज़र समर्थन

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>टैग HTML में वैश्विक विशेषताओं का भी समर्थन करता है


घटना गुण

<textarea>टैग HTML में ईवेंट विशेषताओं का भी समर्थन करता है


और ज्यादा उदाहरण

उदाहरण

डिफ़ॉल्ट आकार बदलने का विकल्प अक्षम करें:

<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>

संबंधित पृष्ठ

एचटीएमएल डोम संदर्भ: टेक्स्टरेरा ऑब्जेक्ट

सीएसएस ट्यूटोरियल: स्टाइलिंग फॉर्म


डिफ़ॉल्ट सीएसएस सेटिंग्स

कोई नहीं।