HTML <textarea> 양식 속성
예시
양식 외부에 있는 텍스트 영역(그러나 여전히 양식의 일부):
<form action="/action_page.php" id="usrform">
Name: <input type="text" name="usrname">
<input type="submit">
</form>
<textarea name="comment" form="usrform">Enter text here...</textarea>
정의 및 사용
속성 은 form
텍스트 영역이 속한 형식을 지정합니다.
이 속성의 값은
동일한 문서에 있는 요소 의 id
속성 과 같아야 합니다.
<form>
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
form | Yes | 11.0 | Yes | Yes | Yes |
통사론
<textarea form="form_id">
속성 값
Value | Description |
---|---|
form_id | Specifies the form element the <textarea> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |
❮ HTML <텍스트 영역> 태그