현재 번역은 완벽하지 않습��다. 한국어로 문서 번역에 동참해주세요.
Introduced in HTML5
개요
HTML <output> 요소는 계산이나 사용자 행동의 결과를 나타냅니다.
- 컨텐츠 범주 플로우 컨텐츠, 구문 컨텐츠, listed, labelable, resettable form-associated element, palpable 컨텐츠.
- 허용되는 컨텐츠 구문 컨텐츠.
- 태그 생략 None, both the starting and ending tag are mandatory.
- 허용되는 부모 요소구문 컨텐츠를 허용하는 모든 요소
- DOM 인터페이스
HTMLOutputElement
속성
이 요소는 전역 속성을 포함합니다.
for- A list of IDs of other elements, indicating that those elements contributed input values to (or otherwise affected) the calculation.
form- The form element that this element is associated with (its "form owner"). The value of the attribute must be an ID of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.
name- 요소의 이름.
예제
<form oninput="result.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" name="b" value="50" /> +
<input type="number" name="a" value="10" /> =
<output name="result"></output>
</form>
사양
| 사양 | 상태 | 주석 |
|---|---|---|
| WHATWG HTML Living Standard The definition of '<output>' in that specification. |
Living Standard | |
| HTML5 The definition of '<output>' in that specification. |
Recommendation |
브라우저 호환성
| 기능 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 10 | 4.0 (2.0) | Not supported | 11 | 7 |
| 기능 | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | 4.0 (2.0) | ? | ? | 7 |
같이 보기
- 다른 폼 관련 요소들:
<form>,<input>,<button>,<datalist>,<legend>,<label>,<select>,<optgroup>,<option>,<textarea>,<keygen>,<fieldset>,<progress>and<meter>.

