HTML - Textarea

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

1 - About

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

A text area can hold an unlimited number of characters.

In HTML, a <textarea> element defines its text by its children.

Advertising

3 - Font

The text renders in a fixed-width font (usually Courier) (ie fixed pitch).

4 - Attribute

Attributes Default Desc
cols 20 with the lift, 22 otherwise the expected maximum number of characters per line
rows 3 the number of lines to show

5 - Example

5.1 - Default

  • HTML
<textarea cols=15 rows=4>
012345678901234567890123456789012345678901234567890123456789012345678901234567890
</textarea>
  • Output:

6 - Documentation / Reference

Advertising