HTML <출력> 양식 속성

❮ HTML <출력> 태그

예시

양식 외부에 있는 <출력> 요소(그러나 여전히 양식의 일부임):

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

❮ HTML <출력> 태그