Sunday, 9 June 2013

How to create checkbox in HTML

 Checkboxes are useful for selecting multiple values, such as: the vehicles you own, foods you like, places you like/want to visit, etc.

Syntax:

               <input type="checkbox" name="food" value="Chinese">Chinese<br>
               <input type="checkbox" name="food" value="Western">Western<br>
               <input type="checkbox" name="food" value="Indian">Indian<br>
               <input type="checkbox" name="food" value="African">African

Output:


             Chinese
             Western
             Indian
             African

No comments:

Post a Comment