Skip to content

Instantly share code, notes, and snippets.

@bsatrom
Created September 1, 2011 18:54
Show Gist options
  • Save bsatrom/1186946 to your computer and use it in GitHub Desktop.
Save bsatrom/1186946 to your computer and use it in GitHub Desktop.
HTML5 Web Forms, ASP.NET MVC and MvcContrib
<fieldset>
<legend>Place Your Order</legend>
Name: <input type="text" class="field" id="orderName" required autofocus placeholder="ex. Hugo Reyes" />
Email: <input type="email" class="field" id="orderEmail" required placeholder="ex. [email protected]" />
Website: <input type="url" class="field" id="orderWebsite" placeholder="ex. http://www.domain.com" />
Phone: <input type="tel" id="orderTelephone" class="field" pattern="\(\d\d\d\) \d\d\d\-\d\d\d\d" title="(xxx) xxx-xxxx" />
Requested Delivery Date: <input type="date" id="deliveryDate" class="field" required />
Shipping Address: <textarea rows="4" cols="20" id="orderShipping" class="field" required></textarea>
Quantity: <input type="number" id="orderQty" name="orderQty" min=1 max=10 step=1 value=1 />
<input type="submit" value="Place Order" />
<input type="submit" formnovalidate value="Save for Later" id="saveForLater" />
</fieldset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment