1 Hour SEO : Domain Registration Bank : Ecommerce Dictionary : GoDefy : Great Web Design Tips
JavaScript 2 : Jumbo Keyword : Marketing Tips Store : Michael Wong Blog : Mike's Marketing Tools
Search Engines 2 : SEO eBook : Text Links Ads : Text Links Guide
 
Web HTML-HTML.com
>>>

You are here: HTML > Forms > <INPUT ...> > TYPE

TYPE = TEXT

TEXT creates a text entry field (the most popular type of data entry field):

this code produces this
<FORM ACTION="/cgi-bin/html/mycgi.pl">
name: <INPUT TYPE=TEXT NAME="realname">
<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
name:

TEXT is the default input type (if you want a text field, you don't even need to use the TYPE attribute).

this code produces this
<FORM ACTION="/cgi-bin/html/mycgi.pl">
<!-- note absence of TYPE attribute -->
name: <INPUT NAME="realname">
<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
name:

The behavior of TEXT fields can be modified using these attributes:

  • VALUE: set an initial value for the field
  • SIZE: how wide the field should be
  • MAXLENGTH: the maximum number of characters the user can enter

TYPE=CHECKBOX

          

Copyright © 2002-10 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com