Chapter 1
Introduction
Section 19
Adding a Checkbox to Our Web Form
We all know checkboxes. You know that box that can be toggled by the user to indicate a YES or NO choice. It is frequently found in HTML forms, dialog boxes, and in the GUIs of applications and operating systems. It's easy to create a checkbox. Again, we will be using the famous <input> element. But this time, its type is set to checkbox. They are rendered by the browser as boxes that are checked (ticked) when activated, like you might see in an official government paper form. The exact appearance depends upon the browser you are using (Mozilla, Chrome, Safari, and so on). Generally, a checkbox will be shown as a square, but it may have rounded corners.