Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,260   Yesterday: 1,015   Max: 1,872   Total: 464,313   Current Users : 13 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

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



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.