एचटीएमएल <इनपुट> फॉर्म विशेषता
उदाहरण
HTML फॉर्म के बाहर स्थित एक इनपुट फ़ील्ड (लेकिन फिर भी फॉर्म का एक हिस्सा):
<form action="/action_page.php" id="form1">
<label for="fname">First name:</label>
<input type="text" id="fname"
name="fname"><br><br>
<input type="submit" value="Submit">
</form>
<label for="lname">Last name:</label>
<input type="text" id="lname"
name="lname" form="form1">
परिभाषा और उपयोग
विशेषता उस form
रूप को निर्दिष्ट करती है जिससे
<input>
तत्व संबंधित है।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो विशेषता का पूर्ण समर्थन करता है।
Attribute | |||||
---|---|---|---|---|---|
form | Yes | Yes | Yes | 5.1 | 10.6 |
वाक्य - विन्यास
<input form="form_id">
गुण मान
Value | Description |
---|---|
form_id | Specifies the form element the <input> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |
❮ एचटीएमएल <इनपुट> टैग