HTML:- Radio button

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Radio Button</title>
</head>

<body>

 <!--
  You should click the checkbox, if you click on the 'Male' or 'Female' text will not check the radio button
  -->
 <input type="radio" name="gndr">Male

 <input type="radio" name="gndr">FeMale

</body>

</html>





Output:-   Male FeMale



Used of:-  
.

Radio Button :-Radio buttons let a user select one of the limited number of choices.

  • name attribute should be given properly to select the radio buttons
HTML:- Radio button HTML:- Radio button Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.