how to use radio button in html
how to use radio button in html
1 Answer
A radio button in HTML is used to able the user to select one choice of some choices.
We write and define it like this <input type="radio">
.
Example:
<form> <p>Where are you from:</p> <input type="radio" name="city" value="jordan"> Jordan <br> <input type="radio" name="city" value="palestine"> Palestine <br> <input type="radio" name="city" value="uk"> UK <br> <input type="radio" name="city" value="other"> Other </form>
Output:
answer Link