Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Radio Button Or Option Button Example</title> </head> <body> <form> <label for="gender">Gender:</label><br /> Male <input type="radio" name="gender" id="gender" value="male" /> Female <input type="radio" name="gender" id="gender" value="female" /> </form> </body> </html>