TOC

The community is working on translating this tutorial into Spanish, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".

Forms:

Multiline Textboxes - The textarea tag

Sometimes you need to give the visitor the opportunity to enter more than just a few characters and this is what the <textarea> element is for.

Just as you can define the length of a text input field you have the option to change the size of you textarea using the attributes rows and cols (abbreviation of the word column).

For this example I've chosen a textarea which is 25 columns wide and 7 rows high.

<form method="post">
	<textarea cols="25" rows="7"></textarea> 
	<br />
	<input type="submit" value="Submit now" />
</form>
This article has been fully translated into the following languages: Is your preferred language not on the list? Click here to help us translate this article into your language!