Monday, April 4, 2011

Checkboxes in HTML

This Check box it will help the user to choice a multiple items like a set of fruits that you can choice what you want. Checkboxes let a user select ONE or MORE options of a limited number of choices.

Source Code:


<!DOCTYPE html>

<html>
<head>
<title>Checkboxes</title>
</head>

<body>

<b>Checkbox:</b><br/>

<p>
<input type= "Checkbox" name="fruit" value="apple">

Apple
</p>


<p>
<input type= "Checkbox" name="fruit" value="orange">
Orange
</p>

<p>
<input type= "Checkbox" name="fruit" value="banana">

Banana
</p>

</body>
</html>

This codes represent on how the checkbox will do. set the TYPE of what you want to put like "checkbox", NAME of the field.what kind of items you will use like "fruit", and VALUE that is submitted if checked and it will represent what item you want.

OUTPUT:













The output it will show the items of fruit and the user selected the apple and banana.

I hope I can help you for what you are asking for..

enjoy reading my blog.

No comments:

Post a Comment