Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>HTML Checkbox Control</title> </head> <body> <form> <label for="hobby">Hobby:</label> Cricket <input type="checkbox" name="sports" id="cricket" value="cricket" /> Football <input type="checkbox" name="sports" id="football" value="football" /> Tennis <input type="checkbox" name="sports" id="tennis" value="tennis" /> </form> </body> </html>