Creating an HTML text field bigger than one line

Updated: 04/26/2017 by Computer Hope

HTMLWhen creating a text field, make sure that you have the ROWS=X COLS=x inside of the text field tag. Where "X" is the value of how many rows tall or how many columns wide you want the textarea to be.

In the example below code we have made a text field that is 2 rows tall and 20 columns wide.

<TEXTAREA Name="content" ROWS=2 COLS=20></TEXTAREA>

Example

Using the above example would create the below textarea box.

Additional information

  • See our text box and textarea definitions for further information and related terms and links.