<textarea> Tag Examples
Examples of the textarea
tag in HTML 5
Text input area with placeholder in HTML form
<form>
<label for="ex1cmnts">Comments:</label>
<textarea id="ex1cmnts" placeholder="Your comments"
cols="70" rows="3">Initial text & stuff ....</textarea>
</form>
Text input area that scrolls horizontally
<form>
<label for="ex2cmnts">Comments:</label>
<textarea id="ex2cmnts" cols="40" rows="3" placeholder="Your comments"
style="white-space: nowrap">This text input area will not be wrapped but will scroll horizontally instead.</textarea>
</form>