Beginner Beginner - 1 year ago 98
HTML Question

Multiple lines of input in <input type="text" />

I have this text input in a form:

<input type="text"
style="width:200px; height:50px;"
value="" />

I am trying to get it to take multiple lines of input. The width and height make the box to be bigger, but the user can enter text all (s)he wants yet it fills one line only.

How do I make the input more like a textarea?

Answer Source

You need to use a textarea to get multiline handling.

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download