How to Create Text Area

abstract082 What is a Text Area? text area is the area where to save the new text or word, or can be a component of HTML used to display text or script code in the form and format text.

 

Usually the text area used to store the HTML code that can not be in writing directly to the blog posting. So the function of the text area is more or less easy for visitors to copy the entire text.

Then how do I create a text area?


To create a text area, please copy code below:

<textarea name="code" rows="4" cols="30"> What is a Text Area? text area is the area where to save the new text or word, or can be a component of HTML used to display text or script code in the form and format text </textarea>


The result :



Description:

for "rows" = 3 is high from the text area, so if you want the text area comrade higher comrade please change the numbers much higher.

for cols = "20" is the width of the text area, so if you want a buddy text area wider sobat please change the numbers much higher.

Quite understand? let's continue.



Text Area with Highlight
Other variations of the text area that is using the Highlight button, meant to be easier to copy the entire text area only by pressing the button Highlight. Only by pressing the button then highlight the entire contents of the text area will be highlighted and live in the only copy. Highlight the key function is very useful to prevent the left one or more of the contents of the text area.

Please copy the HTML code below:

<div><form name="copy"><div align="center"><span><input onclick="javascript:this.form.txt.focus();this.form.txt.select();" value="Highlight All" type="button"> </span></div><p align="center"><textarea style="width: 180px; height: 80px;" name="txt" rows="3" wrap="VIRTUAL" cols="30">save any posts you here, then the text you write will appear here and ready to copy in by the visitors</textarea></p></form></div>

The result :

That's a little explanation of the Text Area. For more details, please try ! smile_wink

 

 

Technorati Tags: ,




Related Posts

1 comment

September 8, 2009 at 8:35 AM

in your last HTML code,
tell me, what's wrap="VIRTUAL" for?

Post a Comment

 

Recent Comments

Reader Community

Recent Posts