weballey logo
 
left forms - textarea backnext right
homesearchsite mape-mail
intro
text
< textarea >
buttons
image
form
e-mail form
checkbox
radio
select
password
hidden
layout
cgi
tags
epilogue
      You could use a form to send e-mail. Although you can say a lot in one line, you will probably want a larger area to type your text in. Enter the TEXTAREA tag.

<TEXTAREA>
Type your text here...
</TEXTAREA>


    The size of this box depends very much on the browser and font you are using. You can make it a bit (or a lot) larger with the ROWS and COLS attributes. The number of cols bears no relation to the amount of characters you can put inside. ROWS does. As you may already have feared, there is no relation to the size of a text input field. Be careful not to go overboard with the numbers, as one browser may make the box easily twice as large as the next. Be sure to try several different browsers before you put ANY form online.

<TEXTAREA COLS="40" ROWS="5" NAME="text">


    As you may have noticed, the default text for a text area is simply put between the two tags. The textarea needs to be named, to be able to use the data it produces.

<TEXTAREA WRAP="virtual">

    If you would type text in the box above, the text will continue if you reach the rim of the box. The text will not wrap, unless you press the enter key. Quite cumbersome if you put in a lot of text, and then start to edit it. If you put the WRAP attrubute in you can control this behaviour. "Virtual" will make the text wrap; "Physical" will send the line breaks, whereas virtual will not.

bottom  
left Copyright © Gerben Hoekstra - All rights reserved backnext right