Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Forms > <INPUT ...>

Attribute for <INPUT ...>
CHECKED

CHECKED indicates that a radio button or checkbox should be on when the form first loads.

this code produces this
<FORM ACTION="../cgi-bin/html/mycgi.pl">

<INPUT TYPE=CHECKBOX NAME="maillist" CHECKED>Yes! Put me on the list!

<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
Yes! Put me on the list!

<FORM ACTION="../cgi-bin/html/mycgi.pl">

What color would you like?<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="green" >Green<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="red" >Red<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="blue" CHECKED>Blue<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="brown" >Brown


<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
What color would you like?
Green
Red
Blue
Brown

Checkboxes are off by default. there is no default for which radio button is on when the form loads; most browsers have none on, some put the first one on.

<INPUT BORDER="..."> >>>

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