HTML input radio

<label> <input name="fruit" type="radio" value="orange" /> Orange</label>
<label> <input name="fruit" type="radio" value="apple" checked /> Apple</label>
<label> <input name="fruit" type="radio" value="banana" /> Banana</label>

type must be "radio"

selected indicate default selected value

name of the multiple radio must have the same value, to ensure only one radio can be selected.

Result :

Copyright 2014-2017 by All Rights Reserved.