HTML5 Form Example

Contact Us or call 1-877-932-8228
HTML5 Form Example

HTML5 Form Example

Open WhatIsjQueryMobile/Demos/forms/index.html in a mobile browser - this is the page from which the screenshots on the previous section were taken.

Code Sample:

<form action="forms.html" method="post">
	<label for="name">Name</label>
	<input type="text" name="name" id="name" placeholder="Jane Doe">
	<label for="phone">Phone</label>
	<input type="tel" name="phone" id="phone">

	<label for="email">Email</label>
	<input type="email" name="email" id="email">

	<label for="website">Website URL</label>
	<input type="url" name="website" id="website">
    <label for="DOB">Date of Birth</label>
	<input type="date" name="DOB" id="DOB">

	<input type="submit">

We use a placeholder value for the first ("name") field, and ask the user for information of type tel, email, url, and date.