TextArea


TextArea will be used to when we need to take long input like user feedback or comments.for input tag we have to specify the type as "text", then it will render a textbox in output.

Syntax:

<textarea id="id" name="name"></textarea>

Example:

<html> <head> <title>HTML Tutorial</title> </head> <body> <div> Please post your comments :<br /> <textarea id="txtComments" name="txtComments" rows="10" cols="50"> </textarea> </div> </body> </html>

Output:

Please post your comments :