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.


What is your favorite type of pizza?


Option 1
Option 2
Option 3


<p>What is your favorite type of pizza?</p>
  <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>