Articles → HTML → Textarea in HTML

Textarea in HTML






Purpose





Syntax


<textarea></textarea>



Example


<html>
<head>
    <title>textarea Demo</title>
</head>
<body>
    <form>
        <textarea></textarea>
    </form>
</body>
</html>



Output



Click to Enlarge


Cols and rows attribute in textarea









Syntax


<textarea cols="" rows=""></textarea>



Example


<html>
<head>
    <title>textarea Demo</title>
</head>
<body>
    <form>
        <textarea cols="20" rows="20"></textarea>
    </form>
</body>
</html>



Output



Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Sunday, November 06, 2016
 
Updated On  -  Sunday, December 03, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250