Connected: An Internet Encyclopedia
RFC 1866 - 8.1.2.3. Check Box: INPUT TYPE=CHECKBOX

Top: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1866
Up: 8. Forms
Up: 8.1. Form Elements
Up: 8.1.2. Input Field: INPUT
Prev: 8.1.2.2. Password Field: INPUT TYPE=PASSWORD
Next: 8.1.2.4. Radio Button: INPUT TYPE=RADIO

### 8.1.2.3. Check Box: INPUT TYPE=CHECKBOX

An <INPUT> element with `TYPE=CHECKBOX' represents a boolean choice. A set of such elements with the same name represents an n-of-many choice field. Required attributes are:

NAME
  symbolic name for the form field corresponding to this element or group of elements.

VALUE
  The portion of the value of the field contributed by this element.

Optional attributes are:

CHECKED
  indicates that the initial state is on.

For example:

<p>What flavors do you like? <input type=checkbox name=flavor value=vanilla>Vanilla<br> <input type=checkbox name=flavor value=strawberry>Strawberry<br> <input type=checkbox name=flavor value=chocolate checked>Chocolate<br>

Next: 8.1.2.4. Radio Button: INPUT TYPE=RADIO

Connected: An Internet Encyclopedia
RFC 1866 - 8.1.2.3. Check Box: INPUT TYPE=CHECKBOX