Chapter 1
Introduction
Section 18
Adding a textarea Widget to Our Web Form
We have already seen the <input type="text"> widget, which begs the question: why do we need a textarea? Great question. The largest downside with the <input type="text"> widget is that it is only used for one line of text. Sometimes, you need more. The <textarea> elements allow the user to input multi-line text. It's used to collect user inputs such as comments or reviews. The <textarea> element can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier). The size of a text area is specified by the <cols> and <rows> attributes (or with CSS), which we will see later on in this course.