Frequently Asked Questions

Text area?

How can I make a textarea field on my form?

Use a code like this:

<textarea name="comments" rows="5" cols="40"></textarea>

All you have to do is change the name (in this case comments) so you know what this answer is about! You can, of course, change the rows number to reflect the height of your box, and the cols number to reflect the width of the box.

Please note: These tags don’t limit the length of a line someone can enter, or how many lines of text they can enter. They simply describe the appearance of the form.

If you want to supply some default text for the text area, you should place it before the </textarea> tag, like so:

<textarea name="comments" rows="5" cols="40">Text</textarea>