The HTML Elements reference.

"textarea" - html element

  • This element is used in forms to get multiple lines of text from the user.
  • Starttag <textarea> is Required and endtag </textarea> is Required
  • The required ROWS and COLS attributes specify the number of visible rows and columns, respectively, in a browser.
  • Browsers that support the textarea - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "textarea" example:
<html>
  <body  >
    <h3 >TextArea </h3>
    <form action=""  method="post" target='_top' >
      <textarea  name="html"  rows="10" cols="60"
                 style="background-color: lightgray; color: blue;" >
This textarea element is defined as:
<textarea  name="html"  rows="10" cols="60"
           style="background-color: lightgray; color: blue;" >
</textarea>
      </textarea>
    </form>
  </body>
</html>


Attributes:
accesskey , class , cols (required), dir , disabled , id , lang , name , readonly , rows (required), style , tabindex , title

Attribute "accesskey" value(s): a character as the accesskey
  • Assigns an access key to an element. Pressing an access key assigned to an element gives focus to the element. Will move focus to the textarea and allow user input.
  • The action that occurs when an element receives focus depends on the element.



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.