Creates a check box control.
The checkbox element allows the user to make multiple selections from a number of options. If you want to prohibit multiple selections, use the input:radio element.
This control is one of the form controls.
The state of the control can be submitted to a server if the following conditions are met:
- A form element must contain the checkbox element.
- The action attribute of the container form must be set to the URL of the server.
- The name attribute of the check box must be specified and non-empty.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
Example HTML code 1:
This example illustrates the use of the check box element:
Did you find this example helpful?
User Contributed Comments