How to Put a Check Box on a Website

On a Web form, a check box is a small square next to an option in the form. The user clicks the box to place or remove a tick, or check mark. The advantage of a check box over a circular radio button or another type of button is that users can check as many boxes as they wish. Adding a check box to a form on your website requires adding a short piece of HTML code in the appropriate place.

Instructions

    • 1

      Open your website's HTML to edit.

    • 2

      Locate the option next to which you want to add the check box. It will be somewhere between the tags <form> and </form>, as these are the tags for an HTML form.

    • 3

      Type the HTML code <input type="checkbox" name=" " value=" " /> before or after the option text, inserting a name and a value between the quotation marks. The "Name," invisible on the webpage, signifies the type of question that part of the form contains, such as "Gender" or "Nationality." The "Value" is an abbreviated form of the answer, such as "Male" or "US."

    • 4

      Save and publish the page.

Related Searches:

References

Resources

Comments

Related Ads

Featured