HTML Radio Button Generator

A radio button is used to let users choose only one option from a list of predetermined options to include its corresponding data for submission to the server.

Preview

What is your favorite type of pizza?




Properties

Option 1
Option 2
Option 3

Code

<p>What is your favorite type of pizza?</p>
<form>
  <input type="radio" id="veggie" name="fav_pizzas" value="veggie"/>
  <label for="veggie">Veggie Pizza</label>
  <input type="radio" id="pepperoni" name="fav_pizzas" value="pepperoni"/>
  <label for="pepperoni">Pepperoni Pizza</label>
  <input type="radio" id="hawaiian" name="fav_pizzas" value="hawaiian"/>
  <label for="hawaiian">Hawaiian Pizza</label>
</form>