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