Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


HTML Forms: Checkboxes

INPUT tags of TYPE="checkbox" are best used to select members of small sets.

<Form	ACTION="test.cgi">
<table border=2>
<tr>
    <th align=right>
	<INPUT	TYPE	= "checkbox"
		NAME	= "group"
		VALUE	= "Title" Checked>
			   Title
    </th>
    <th align=center>
	<INPUT	TYPE	= "checkbox"
		NAME	= "group"
		VALUE	= "Description">
			   Description
    </th>
    <th align=left>
	<INPUT	TYPE	= "checkbox"
		NAME	= "group"
		VALUE	= "URL">
			   URL
    </th>
  </tr>
</table>
</form>
Title Description URL
NAME
VALUE
Specifies the value of the option to be sent to the server.
If not defined, a value of "on" is sent to the server.

CHECKED
This tag defaults to a checkbox to be selected.
  • Decide whether the label goes to the left or the right, and stick to that convention.

  • Ensure that for checkboxes in the midst of several, it's clear which checkbox the label refers to, by means of some visual cue such as colon after the label, or a comma between label/checkboxes, or by placing in a bordered table.

  • If you have many, it may help to arrange them in preformatted columns.

  • You can emulate a SELECT MULTIPLE list by having CHECKBOXESwith the same NAME but different VALUES.


Up to => Home / Authoring / HTML / Forms




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers