Adscend

Click Here



Click Here



Click Here

Sunday 8 September 2013

Form Input Element Textarea Code

HTML Form Input Element Textarea Code

<textarea> </textarea> indicates a form field where the user can enter large amounts of text.
Theoretically the user can type unlimited amounts of text into the textarea field. In reality the browser sets the limit no more than 32 K.

Textarea has the following attributes:
name — name of this form field. The name of the variable to be sent to the CGI application.
rows — how many rows.
cols — how many characters wide.
wrap — how to wrap the text. Default is off. You should set wrap to “virtual” or “physical” so that the text wraps in the browser display as the surfer types.
readonly — don't let the user change the contents of the field.
disabled — don't let the user do anything with this field. disabled can be used to disable the element.
tabindex — tab order. tabindex can be used to specify where the element appears in the tab order of the page.
onChange —Script to run when the user has changed the textarea.
onKeyPress — Script to run when a key is pressed.
language — scripting language.
accesskey —can be used to associate a keyboard shortcut to the element.

HTML textarea attributes: name,rows and cols

Example: 1
<html>
<body>
<form>
<textarea name="comments"cols="10" rows="2"></textarea><br />
<textarea name="comments" cols="20" rows="4"></textarea><br />
<textarea name="comments" cols="40" rows="6"></textarea><br />
<input type="submit"/>
</form>
</body>
</html>
Output





No comments:

Post a Comment