O'Reilly logo

Microsoft® HTML5 Step by Step by Faithe Wempen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Check Boxes and Option Buttons

When the valid responses to a particular prompt will always be one of a few simple options, such as gender or employment status, you will get more consistent and easier-to-evaluate results by using check boxes and option buttons rather than text boxes.

For example, suppose you are asking site visitors a yes/no question such as, “Are you interested in receiving our catalog by mail?” If you provide a text box, people might answer the question in any number of ways: y, n, Y, N, yes, no, Yes, No, YES, NO, maybe, Sure, No Thanks, and so on. Tabulating such results would be tedious because a human would need to evaluate each one. But by providing a check box, you remove any doubt: a check mark means yes; the lack ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required