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

Attribute for <INPUT ...>
SIZE =integer

SIZE sets how wide a text or password field should be. It has no effect on any other type of field.

<FORM ACTION="/cgi-bin/html/mycgi.pl">
age: <INPUT TYPE=TEXT NAME="age" SIZE=2><BR>
first name: <INPUT TYPE=TEXT NAME="first" SIZE=10><BR>
last name: <INPUT TYPE=TEXT NAME="last" SIZE=30><BR>
cosmic plane of origin:<BR> <INPUT TYPE=TEXT NAME="plane" SIZE=70>
<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>

gives us these fields of various length:

age:
first name:
last name:
cosmic plane of origin:

SIZE does not set the maximum length of what can be typed in. Use MAXLENGTH for that. Avoid setting SIZE to a length of 1. Although 1 is technically a valid size, many browsers have a hard time rendering a field that short. Try a size of 2.

<INPUT MAXLENGTH="..."> >>>

          

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