Show Output
<!DOCTYPE html> <html lang="en"> <head> <title>HTML Checkboxes</title> </head> <body> <form> <input type="checkbox" name="sports" value="soccer" id="soccer"> <label for="soccer">Soccer</label> <input type="checkbox" name="sports" value="cricket" id="cricket"> <label for="cricket">Cricket</label> <input type="checkbox" name="sports" value="baseball" id="baseball"> <label for="baseball">Baseball</label> </form> </body> </html>