Horje

Full Code Example of HTML Input Type Radio

The input type="radio" defines a radio button:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>Radio Buttons</h2>

<p>The <strong>input type="radio"</strong> defines a radio button:</p>

<p>Choose your favorite Web language:</p>
<form action="/action_page.php">
  <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><br><br>
  <input type="submit" value="Submit">
</form> 

</body>
</html>

Output should be:

Full Code Example of HTML Input Type Radio




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Input Types
Uploaded by:
Admin