Latest web development tutorials

HTML textarea name attribute

HTML textarea tag Reference Manual HTML <textarea> tag

Examples

With a name attribute text area:

<form action="demo_form.html">
<textarea name="comment">输入内容...</textarea>
<input type="submit">
</form>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support name attribute.


Definition and Usage

name attribute to a text area specified name.

name attribute is used in JavaScript to reference elements, or after the form is submitted, the form data to be referenced.


Differences between HTML 4.01 and HTML5

no.


grammar

<textarea name="text">

Property Value

描述
text 规定文本区域的名称。


HTML textarea tag Reference Manual HTML <textarea> tag