How to create a form with radio buttons in HTML

1 Answer

0 votes
<!DOCTYPE html>
<html>
<body>
  
<h1>HTML Form With Radio Buttons</h1>
  
<form action="save.php" method="post"> <!-- Note: 404 That page (save.php) doesn't exist -->
  <input type="radio" name="gender" value="male" checked> Male<br>
  <input type="radio" name="gender" value="female"> Female<br>
  <input type="radio" name="gender" value="other"> Other  
  <br /><br />
  <input type="submit" value="Submit">
</form> 
  
</body>
</html>

 



answered Jan 1, 2019 by avibootz
edited Jan 1, 2019 by avibootz
...