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.
  • The key combination that activates the link to which the accesskey is applied varies depending on the platform and browser combination.
These are for the windows platform:
Browser accesskey usage Remarks
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Alt + accesskey Set the focus on the element. Press enter to execute any link.
Shift + escape + accesskey Shift + escape gives you a list of possible accesskey related to the page.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.



© 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.