English
German

HTML Textareas

HTML Textareas

Textareas retrieve "blog" type information from the user. Paragraphs, essays, or memos can by cut and pasted into textareas and submitted. Textareas have an opening and a closing tag, any words placed between them will appear inside your text area.

Example:

<textarea>Text Area!</textarea>
 

Output

HTML Textarea Wrap

The wrap attribute refers to how the text reacts when it reaches the end of each row in the text field. Wrapping can be one of three settings:

    * soft
    * hard
    * off

Soft forces the words to wrap once inside the text area but when the form is submitted, the words will no longer appear as such (Line breaks will not be added).

Hard wraps the words inside the text box and places line breaks at the end of each line so that when the form is submitted it appears exactly as it does in the text box.

Off sets a textarea to ignore all wrapping and places the text into one ongoing line.

Example:

<textarea cols="20" rows="5" wrap="hard">
As you can see many times word wrapping is often the desired
look for your textareas. Since it makes everything nice and
easy to read.
</textarea>
 

Output

HTML Textarea Readonly

Settting a yes or no value for the readonly attribute determines whether or not a viewer can manipulate the text inside the text field.

Example:

<textarea cols="20" rows="5" wrap="hard" readonly="yes">
As you can see many times word wrapping is often the desired
look for your text areas. Since it makes everything nice and
easy to read.
</textarea>
 

Output

Now you may not change the text inside the text area. However, you can still highlight or Ctrl-C and copy the texts.


HTML Disabled

As the readonly attribute disables text manipulation, we can take things one step further by setting the disabled attribute. This grays out the textarea altogether and inhibits any change in the text as well as text highlighting.

Example:

<textarea cols="20" rows="5" wrap="hard" disabled="yes">
As you can see many times word wrapping is often the desired
look for your text areas. Since it makes everything nice and
easy to read.
</textarea>
 

Output

HTML Tutorial,HTML Textareas, HTML Textareas example, learn HTML Textareas,explain example HTML Textareas online free training HTML Tutorial, HTML Tutorial example, learn HTML Textareas, online tutorial, download tutorial, HTML Tutorial books, HTML Tutorial videos, live videos HTML Tutorial, learn HTML Tutorial, HTML Tutorial topic HTML Textareas, live training HTML Tutorial, download free tutorial