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>
Try It
Output
Cols And Rows Attribute In Textarea
- Cols → cols attribute is used to configure the width of the textarea
- Rows → rows attribute is used to configure the length of the 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>
Try It
Output
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |