👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

html radio buntton

In HTML, the <input type="radio"> tag creates a radio button. To create a group of radio buttons linked together, specify the same name for each button of the group. Here is an example:

<input type="radio" id="btn1" name="weekday" value="mon">
<label for="btn1">Monday</label><br>

<input type="radio" id="btn2" name="weekday" value="tue" checked>
<label for="btn2">Tuesday (default)</label><br>

<input type="radio" id="btn3" name="weekday" value="wed">
<label for="btn3">Wednesday</label>

The previous example should display something like:

Try this example online on JSFiddle.