HTML - Textarea

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.

Font

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

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

Example

Default

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

Event

When the value changes, it fires an input event.

Library

Documentation / Reference





Discover More
Devtool Chrome Event Listener
Change event (DOM, Javascript)

A page and example about the change event
Devtool Chrome Event Listener
DOM - Event Type (name)

An event is categorize by its type which is a property of the event object The type of an event is also known as the name of the event (Ref)...
Devtool Chrome Event Listener
DOM - Input Event

The input event fires when the value has changed of one of this input element: a input, a select, or textarea With an input The HTML The javascript Result: Type a text in the input...
Devtool Chrome Event Listener
DOM Event - Scroll

scroll is an view event that happens when the user scroll keydown block A function that tells when the element is visible (in the view port) Scroll is a really sensitive and CPU intensive function....
HTML - (Flow|Body) Content

Most elements that are used in the body of documents and applications are categorized as flow content. Flow content consists of flow elements intermixed with normal character data. (ifbodhead...
Devtool Track Active Element
HTML - Focus (Active element) (and Blur)

The focus is the interactive element actually active on a HTML dom document through: a mouse click (if you mouse click on a text input field, ready to begin typing, this element will come into focus)...
HTML - Interactive Content (User Interaction) (Element)

Interactive element are interactive elements that are specifically intended for user interaction. (if the controls attribute is present) (if the usemap attribute is present) (if...
HTML - Palpable content

As a general rule, elements whose content model allows any flow content or phrasing content should have at least one node in its contents: that is palpable content (Can be manipulated ?) and that...
HTML - Phrasing Content (Text)

Phrasing content is: the text of the document, as well as elements that mark up that text at the intra-paragraph level. Runs of phrasing content form paragraphs. Most elements that are categorized...
Browser
How to select text dynamically in a Browser with Javascript? The window Selection Object explained

How to manipulate the selection made by a mouse or with the keyboard in a browser



Share this page:
Follow us:
Task Runner