Create a Set of Checkboxes

What is Checkbox:-
Here we'll learn how to Create a Set of Checkboxes.A checkbox (check box, tickbox, tick box) is a GUI widget that permits the user to make a binary choice, i.e. a choice between one of two possible mutually exclusive options. For example, the user may have to answer 'yes' (checked) or 'no' (not checked) on a simple yes/no question.Form commonly use checkboxes for question that may have more than one answer. checkboxes are a type of input. Each of your checkboxes can be nested within its own label element by wrapping an input element inside of a label element. it will automatically associate the checkbox input with the label element surrounding it.

All related chechbox inputs should have the same name attributes.



For Example:

<html>
<head>
<title> your web page title name </title>
</head>
<body>
<h1> which is best course in  wikibooster</h1>
<form>
<label for ="name">Web Designing</label>
<input type="checkbox" name="name">
<label for ="name">HTML</label>

<input type="checkbox" name="name">
<label for ="name">CSS</label>

<input type="checkbox" name="name">
<label for ="name">Javascript</label>

<input type="checkbox" name="name">
</form>
</body>
</html>


Output:















Please Share To Other:

Post a Comment

0 Comments