HTML <textarea> tag

Html <textarea> : Definition

• HTML <textarea> tag is used to define a multi-line text input control.

• The <textarea> element allows to hold unlimited number of characters and the displayed in a fixed-width font(usually courier).

• The <cols> and <rows> attribute defines the size of the HTML textarea, or it can also be specified using CSS height and width properties.



Html <textarea> example

<form action="">
  <label class="paragraph">Write here :</label> <textarea rows="4" cols="50" class="paragraph">
   This is a textarea field, it can be written up to 4 rows and 50 columns inside this. 
  </textarea>
  <br><br>
  <input type="submit" value="Submit">
</form>

Output: