HTML <textarea> formu Özelliği
Örnek
Bir formun dışında bulunan (ancak yine de formun bir parçası olan) bir metin alanı:
<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>
Tanım ve Kullanım
Nitelik form
, metin alanının ait olduğu formu belirtir.
Bu özniteliğin değeri
, aynı belgedeki id
bir öğenin özniteliğine eşit olmalıdır.
<form>
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
form | Yes | 11.0 | Yes | Yes | Yes |
Sözdizimi
<textarea form="form_id">
Özellik Değerleri
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 <textarea> etiketi