एचटीएमएल <आउटपुट> फॉर्म विशेषता
उदाहरण
एक फॉर्म के बाहर स्थित एक <आउटपुट> तत्व (लेकिन फिर भी फॉर्म का एक हिस्सा):
<form action="/action_page.php" id="numform"
oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" name="a" value="50">
+ <input type="number" id="b" name="b" value="25">
<input type="submit">
</form>
<output form="numform" id="x" name="x" for="a+b"></output>
परिभाषा और उपयोग
विशेषता उस form
रूप को निर्दिष्ट करती है जिससे
<output>
टैग संबंधित है।
विशेषता का मान
उसी दस्तावेज़ में किसी तत्व की विशेषता के form
बराबर होना चाहिए ।
id
<form>
ब्राउज़र समर्थन
Attribute | |||||
---|---|---|---|---|---|
form | Not supported | Not supported | Not supported | Not supported | Not supported |
वाक्य - विन्यास
<output form="form_id">
गुण मान
Value | Description |
---|---|
form_id | Specifies the form element the <output> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |
❮ एचटीएमएल <आउटपुट> टैग