Horje

Example of HTML Radio Buttons

A form with radio buttons:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>Radio Buttons</h2>

<p>Choose your favorite Web language:</p>

<form>
  <input type="radio" id="html" name="fav_language" value="HTML">
  <label for="html">HTML</label><br>
  <input type="radio" id="css" name="fav_language" value="CSS">
  <label for="css">CSS</label><br>
  <input type="radio" id="javascript" name="fav_language" value="JavaScript">
  <label for="javascript">JavaScript</label>
</form> 

</body>
</html>

Output should be:

Example of HTML Radio Buttons



Single Articles
Example of HTML Radio ButtonsHTML Forms


Related Articles
What is HTML Forms HTML Forms
What is The <form> Element HTML Forms
What is The <input> Element HTML Forms
What is Text Fields HTML Forms
What is The HTML <label> Element HTML Forms
How to add HTML Radio Buttons HTML Forms
How to create HTML Checkboxes HTML Forms
How to create HTML Submit Button HTML Forms
How to create HTML Name Attribute for <input> HTML Forms
What is HTML Form Attributes HTML Forms

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML Forms
Uploaded by:
Admin



Share on: