English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <textarea> Attribut "name"

Das Attribut "name" bestimmt den Namen des Textbereichs. Das Attribut "name" wird verwendet, um Elemente in JavaScript zu referenzieren oder Daten in einem abgeschickten Formular zu referenzieren.

 HTML <textarea> Tag

Online Example

Text area with name attribute:

<form action="action_page.php">
<textarea rows="6" cols="60" name="comment">
Enter text here...</textarea>
<input type="submit">
</form>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the name attribute.

Definition and Usage

The name attribute specifies the name of the text area.

The name attribute is used to reference elements in JavaScript or to reference form data after submitting the form.

HTML 4.01 and HTML5Differences between

None.

Syntax

<textarea name="text">

Attribute Value

ValueDescription
textSpecify the name of the text area.
 HTML <textarea> Tag