The above code places two radio buttons with a group name of "grpgender", one with a value "Male" and other one with value "Female". As the checked property is given for the first radio button it will be selected by default. This will give the output like :
Radio button or Checkbox
In a web form if we can select one of the several options then we will go for Radio buttons.
If the user can select more than one options then we will go for checkbox.
How many languages you know ? ( Use checkbox here as user can slect more than one choice )
Your gender ( Use radio button here as user can select one choice )