HTML textarea element


The HTML <textarea> element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.


The HTMLTextAreaElement interface provides special properties and methods for manipulating the layout and presentation of <textarea> elements.

Autogrowing textareas

Three years ago, I shared an approach for creating autoexpanding textarea elements with vanilla JS. On a recent project, I decided to search for a more modern way to automatically expand textarea elements as the user types, and stumbled upon this solution <> ( ) from Stephen Shaw that I think is far superior.