Multiple lines of input in <input type="text" />
Solution 1:
You need to use a textarea to get multiline handling.
<textarea name="Text1" cols="40" rows="5"></textarea>
Solution 2:
It is possible to make a text-input multi-line by giving it the word-break: break-word;
attribute. (Only tested this in Chrome)
Solution 3:
You can't. At the time of writing, the only HTML form element that's designed to be multi-line is <textarea>
.
Solution 4:
Use the textarea
<textarea name="textarea" style="width:250px;height:150px;"></textarea>
don't leave any space between the opening and closing tags Or Else This will leave some empty lines or spaces.