What are the Check boxes?

Asked By 0 points N/A Posted on -
qa-featured

Hello,

What are the Check boxes? How does it work? Where does it use? Please tell me about details. Are Check boxes important to web page?

SHARE
Best Answer by ezeus
Answered By 5 points N/A #164800

What are the Check boxes?

qa-featured

Hello,

The check boxes are an outstanding technique to get information from website visitors from selected topics.

The main benefits of check boxes are the visitors can select their more than one option.

It is very best for those users where multiple answers exist.

To create check boxes in input element there in type attribute value will be checkbox.

There is example:

<P>What is your favorite free time :</P>

<input type="checkbox" name="reading" id="reading" />Reading<br />

<input type="checkbox" name="sports" id="sports" />Sports<br />

You can follow above style.

Thanks.

Best Answer
Best Answer
Answered By 0 points N/A #164801

What are the Check boxes?

qa-featured

Hi Ggrinige,

>What are Check boxes?
Check boxes are one of the many Graphical User Interface elements.

>How does it work? Where is it used? And additional details:
It is mainly used when you want your users to select multiple answers from a given set of choices.
This is used in contrast to the radio button which allows only one answer for any given set of choices.

For example,

If you want to ask a person if what his talents are, surely you are asking him to give you 1 or more answers.
In this case, you need to use check boxes in displaying the given set of talents that you would like him to choose from.

sample code:
<!–
<input type="checkbox" name="option1" value="value1"> Dancing<br>
<input type="checkbox" name="option2" value="value2"> Singing<br>
<input type="checkbox" name="option3" value="value3"> Painting<br>

–>

However, if you are asking a person if what his gender is, surely you are asking him if he is either male or female.
In this case, you should use the radio button which will allow him to select only one of the given choices.
<!–
<input type="radio" name="gender" value="value1"> Male<br>
<input type="radio" name="gender" value="value2"> Female<br>

–>

Are check boxes important to a web page?
Not really, it depends on the data that you would like to gather from your users.
It only becomes important if , as I have said, if you are asking your users to input multiple answers from a given set of choices.

Hope this helps!
 

Related Questions