HTML radio buttons allow users to interact with the website, usually via JavaScript.
HTML elements of radio buttons are placed in two or more of them in a group.
In a group of radio buttons, only one can be selected, because selecting another radio button automatically deletes the previous selection.

<input type="radio">

HTML Radio Buttons - Example

<form>
<input type="radio" name="language" value="html">HTML    <br>
<input type="radio" name="language" value="css"> CSS    <br>
<input type="radio" name="language" value=javascript>JAVASCRIPT     <br>
</form>

result:


HTML
CSS
JAVASCRIPT







HTML Radio Buttons with Submit Button

<form>
<input type="radio" name="language" value="html">HTML    <br>
<input type="radio" name="language" value="css"> CSS    <br>
<input type="radio" name="language" value=javascript>JAVASCRIPT     <br>
<input type="submit">    <br>
</form>

result:


HTML
CSS
JAVASCRIPT




Privacy Policy