Html Radio button


Prev Tutorial Next Tutorial

Radio Button

Radio button are used for select only one option from group of multiple option, this button is generally used for select male or female option.

Example

<html>
<head>
 <form>
  <label for="gender">Gender: </label>
  <input type="radio" id="gender" name="gender" value="male"/> Male
  <input type="radio" id="gender" name="gender" value="female"/> Female
 <form>
</body>
</html>

Result

Male Female

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements