سمة شكل <textarea> HTML

❮ علامة 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 <textarea>