Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AustinGil/b2447739d3ce8a5674bbef0dfac5e589 to your computer and use it in GitHub Desktop.
Save AustinGil/b2447739d3ce8a5674bbef0dfac5e589 to your computer and use it in GitHub Desktop.
Medium snippet
<form method="POST" action="https://api.pizza.com">
<label for="name">Name</label>
<input id="name" name="name" />
<label for="email">Email</label>
<input id="email" name="email" type="email" />
<fieldset>
<legend>Pizza toppings</legend>
<input id="cheese" name="toppings" value="cheese" type="checkbox" />
<label for="cheese">Cheese</label>
<input id="pepperoni" name="toppings" value="pepperoni" type="checkbox" />
<label for="pepperoni">Pepperoni</label>
<input id="pineapple" name="toppings" value="pineapple" type="checkbox" />
<label for="pineapple">Pineapple</label>
<input id="ham" name="toppings" value="ham" type="checkbox" />
<label for="ham">Ham</label>
</fieldset>
<button type="submit">Submit</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment