Textarea – Multiline Textboxes

Textarea – Multiline Textboxes

Here, we will learn that if a user need to enter the data more than some limited characters then which element is used and it can be used to specify the space.

Like sometimes you need to give the visitor the opportunity to enter more than just a few characters then use <textarea> element. For that you need to define the length of a text input field by changing the size of textarea using the attributes rows and cols.

Here in the example we have declared the textarea with the 20 columns wide and 5 rows high.

Code

Output

 

 

Scroll to Top