Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Input Checkbox
Input Checkbox

Input Checkbox type is used to create small square button in forms or anywhere. Checkbox is used for collecting data from users and it provides multiple choises to select.

Syntax

<input type=checkbox value=checkbox name />


You can use checkbox in forms and any where within an HTML document.


Example

One Two

Input is unpair tag and output of checkbox is options for data like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create a form
  • Create three checkbox buttons
  • Assign value=Left to button one
  • Assign value=Middle to button two
  • Assign value=Right to button three
  • Use input type submit with value=Send Option

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

Left Middle Right