The textarea element for HTML represents a multiline plain text edit control for the element's raw value.
<textarea attribute-name="attribute-value"></textarea> Name Value Description autocomplete on | off Specifies whether the element represents an input control for which a UA is meant to store the value entered by the user (so that the UA can prefill the form later) autofocus autofocus | empty Specifies that the element represents a control to which a UA is meant to give focus as soon as the document is loaded cols positive integer Expected maximum number of characters per line of text for the UA to show dirname string Enables submission of a value for the directionality of the element, and gives the name of the field that contains that value disabled disabled | empty Specifies that the element represents a disabled control form IDREF Identifies a form with which to associate the element maxlength positive integer Maximum length of value minlength positive integer Minimum length of value name string Name part of the name/value pair associated with this element for the purposes of form submission placeholder string Short hint (one word or a short phrase) intended to aid the user when entering data into the control represented by its element readonly readonly | empty Specifies that element represents a control whose value is not meant to be edited required required | empty Specifies that the element is a required part of form submission rows positive integer Number of lines of text for the UA to show wrap hard | soft Instructs the UA to insert line breaks into the submitted value of the textarea such that each line has no more characters than the value specified by the cols attribute Instructs the UA to add no line breaks to the submitted value of the textarea
<!doctype html>
<html>
<body>
<form>
<textarea autocomplete="on">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea autofocus>textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea cols="8">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea name="myname" dirname="myname.dir">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea disabled>textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form id="myid">
<textarea form="myid">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea maxlength="8">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea minlength="8">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea name="myname">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea placeholder="placeholder"></textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea readonly>textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea required></textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea rows="8">textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea cols="80" wrap="hard">textarea textarea textarea textarea textarea textarea textarea textarea textarea textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>
<!doctype html>
<html>
<body>
<form>
<textarea cols="80" wrap="soft">textarea textarea textarea textarea textarea textarea textarea textarea textarea textarea</textarea><br>
<input type="reset"><input type="submit">
</form>
</body>
</html>