Stay in touch
Subscribe to our RSS!
Oh c'mon
Bookmark us!
Have a question?
Get an answer!

Create Validation Form With HTML5

HTML5 is not yet released We can not create a Validation Form with HTML.

Because HTML5 is a new element and attribute We can create a Validation Form HTML easily without having to use Other languages ​​to help.

Validation Form, we use an Attribute that required the use of the name that you use to enter data and absolute other items, we use input type = "email" to determine Users must enter the mail form.

For example,


<form method="post" name="register" id="register" action="register.php">
    <h1>Simple Validation Form with HTML5</h1>
     <div>
        <label>Username</label><br />
        <input id="username" name="username" type="text" required />
    </div>
    <div>
        <label>Password</label><br />
        <input  name="password" type="password" autofocus  required title="Please enter you password." />
    </div>
    <div>
        <label>Email</label><br />
        <input type="email" placeholder="itkonkhmer@gmail.com" required>
    </div>
             
    <div>
        <input id="send" name="login" type="submit" value="Register" />
    </div>
</form>
Download Demo