html . The control associated to this field is a text box that allows users to edit multiple lines of plain text. Html Attributes of Html.TextArea TextArea is a multiline text input control that can accept a large number of string lines. We can make any element editable and input-like with the contenteditable attribute: 99 . textarea {. width: 100px; form: form_id: Specifies one or more forms. By default, it creates a textarea with rows=2 and cols=20. That will naturally grow to be the width it needs to be for the content it contains. HTML CSS max-width: 300px; max-height:300px Demo on jsfiddle. /form > … Some developers also use cols and rows css property to provide textarea size. placeholder : text: Specifies a short hint of the value in textarea. Add this piece of code to your textarea style: Description. To prevent a text field from being resized, you can use the CSS resize property with its "none" value. Specifies the visible width of a text area: dirname: textareaname.dir: Specifies that the text direction of the textarea will be submitted: disabled: disabled: Specifies that a text area should be disabled: form: form_id: Specifies one or more forms the text area belongs to: maxlength: number: Specifies the maximum number of characters allowed in the text area: name: text How to control the textarea resizing with CSS3¶ In this article, we are going to learn how to make the HTML