HTML textarea tag

## HTML Reference

HTML by Alphabet HTML by Function HTML Global Attributes HTML Events HTML Canvas HTML Audio/Video HTML Doctypes HTML Colornames HTML Colorpicker HTML Colormixer HTML Character Sets HTML ASCII HTML ISO-8859-1 HTML Symbols HTML URL Encode HTML Lang Codes HTTP Messages HTTP Methods Keyboard Shortcuts

## HTML Tags

<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <command> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <keygen> <label> <legend> <li> <link> <map> <mark> <menu> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

# HTML <textarea> Tag

« HTML Reference
<tfoot> Tag »

## Example

An HTML text area:

<textarea rows="4" cols="50">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>
Try it yourself »

## Browser Support

The <textarea> tag is supported in all major browsers.

## Definition and Usage

The <textarea> tag defines a multi-line text input control.

A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).

The size of a text area can be specified by the cols and rows attributes, or even better; through CSS' height and width properties.

## Differences Between HTML 4.01 and HTML5

HTML5 has added several new attributes.

## Attributes

New : New in HTML5.

Attribute | Value | Description
--- | --- | ---
autofocus New | autofocus | Specifies that a text area should automatically get focus when the page loads
cols | number | Specifies the visible width of a text area
disabled | disabled | Specifies that a text area should be disabled
form New | form_id | Specifies one or more forms the text area belongs to
maxlength New | number | Specifies the maximum number of characters allowed in the text area
name | text | Specifies a name for a text area
placeholder New | text | Specifies a short hint that describes the expected value of a text area
readonly | readonly | Specifies that a text area should be read-only
required New | required | Specifies that a text area is required/must be filled out
rows | number | Specifies the visible number of lines in a text area
wrap New | hard soft | Specifies how the text in a text area is to be wrapped when submitted in a form

## Global Attributes

The <textarea> tag also supports the Global Attributes in HTML.

## Event Attributes

The <textarea> tag also supports the Event Attributes in HTML.

## Related Pages

HTML DOM reference: Textarea object

« HTML Reference
<tfoot> Tag »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE