HTML Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
HTML Basic
Introduction
How To
HTML Tags
html, head, body
Text Manipulation
IMAGES
Special Effects
Using Tables
Forms
Other Topics
 

ADVANCED HTML
Introduction
Media
Meta Tag
Frame tags
Fieldset
Tooltip
DTD
Image tags
Subscript & Superscript
Bullet styles
Canvas
Other tags
Ask Your Doubts
More about HTML
Feedback
 




HTML TextArea Tag


Tutorials Html

Topic

How to create a big text field?
How to set the size of textarea?
How to disable text area?



Explanation

TextArea

Code:
<form name=myform>
<textarea name=mytextarea>
This is a text area ...........
</textarea>
</form>


Result:

Definition:
Here we define the text area using "textarea" tag. What ever you want to be displayed in side textarea should be given in between the textarea's open and close tags as shown in the example. This will take the default size.


Setting TextArea Size
The text area size is determined using the attributes "rows" and "cols". You can change the size of text area by changing the values of rows and cols.

Example Code:
<form name=myform>
<textarea name=mytextarea cols=35 rows=3>
This is a text area example...........
</textarea>
</form>


Result:


Non Editable Text Area
We can make a test area non selectable (i.e user cant edit the field) using the entry "readonly"

Example Code:
<form name=myform>
<textarea name=mytextarea cols=5 rows=5 readonly>
This is a text area ...........
</textarea>
</form>


Result:




Other Links

web hosting