C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML TextareaThe HTML <textarea> tag is used to define a multi-line text input control. It can hold unlimited number of characters and the texts are displayed in a fixed-width font (usually courier). The size of the HTML textarea is defined by <cols> and <rows> attribute, or it can also be defined through CSS height and width properties. HTML Textarea Example<textarea rows="9" cols="70"> JavaTpoint textarea tag example with rows and columns. </textarea> Output: JavaTpoint textarea tag example with rows and columns. Supporting Browsers
New HTML 5 Textarea Attributes
HTML Textarea form attributeThe form attribute specifies one or more forms the text area belongs to. <form action="updates.jsp" id="usrform"> Name: <input type="text" name="usrname"> <input type="submit"> </form> <br> <textarea rows="9" cols="70" name="comment" form="usrform"> Enter text here...</textarea> <p>The text area above is outside the form element, but should still be a part of the form.</p> <p><b>Note:</b> The form attribute is not supported in Internet Explorer.</p> Output: Enter text here... The textarea element above is outside the form , but it is still the part of the form. Note: The form attribute is not supported in Internet Explorer.
Next TopicHTML tfoot Tag
|