Articles → HTML → Textarea In HTML
Textarea In HTML
Purpose
Syntax
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 Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |