Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a large textbox to get a paragraph input

I want to make an user enter a paragraph in a jsp page, but the problem is, the jsp page only displays a regular size text box , which is too small to enter a paragraph.

What i mean is i want to display a large text box in the jsp page so that the user can enter text in to it.

For example like this one : enter image description here

How do i make a small text box as big as the above example?

Thank you for your time.

like image 655
Troller Avatar asked Dec 30 '13 05:12

Troller


People also ask

What is the form that you can use for large area for text input?

The <textarea> tag defines a multi-line text input control. The <textarea> element is often used in a form, to collect user inputs like comments or reviews. A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).

Which tag do you use to create a text box for a large amount of text in HTML?

The HTML <textarea> is a tag used within a form to declare a multiline textbox that allows the user to input text over multiple lines.

How can I increase the size of textbox input?

The height of a textbox of input tag can be increased by using its style property. In style, we have to give a property of height and after this we have to give a required value to its height attribute. So, that the height may increase according to your choice.


1 Answers

You need to use textarea

<textarea name="paragraph_text" cols="50" rows="10"></textarea>

Required Attributes

  • rows is used to define the number of viewable rows.
  • cols is used to specify the number of viewable columns.
like image 110
Aniket Kulkarni Avatar answered Sep 20 '22 03:09

Aniket Kulkarni