Students Empire

Learn Something New

form textarea

The textarea element creates a multiline text box.

It has local Attributes:name, disabled, form, readonly, maxlength, autofocus, required, placeholder, dirname, rows, wrap, cols.

The text contents are wrapped between the start and end tags.

The form, autofocus, required, placeholder, and wrap attributes are new in HTML5.

The rows and cols attributes specify the dimensions of the textarea.

The hard or soft value for wrap attribute control how line breaks are added to the text.

			        <!DOCTYPE HTML>
			    <form method="post" action="#">
			    <textarea cols="20" rows="5" wrap="hard" id="story" name="story">
			    Say something
			    <input type="submit" value="Submit" />