Article Introduction: today we'll take a look at how to create a practical and powerful form that uses today's hottest technology HTML5 and CSS3 to create and can be validated by HTML5. |
Today we'll take a look at how to create a practical and powerful form that uses today's hottest technology HTML5 and CSS3 to create and can be validated by HTML5.
View Preview Download attachment
The first step: Planning the form function
First of all, we have to plan for our form to have what function, in what form performance. In this example, we'll make a simpler message form. The required features are as follows:
- Name
- Email
- Website address
- Submit button
We all want users to be able to fill in the right information before submitting, and to do this, we can use the HTML5 client to validate the new technology. So how do you use this function? Here the simple use of server authentication, do not do further in-depth understanding.
Step two: Plan form form
In my heart, longing for a beautiful and simple submission form. Although it is ugly now, but he is not pheasant is Phoenix.
As shown in the figure above, contains the following sections:
- Table title (Required fields)
- Table Labels
- Form input (placeholder text)
- Form hints
- Submit button
Now that we have identified the form, we begin to create the HTML structure code.
[1] [2] [3] [4] Next page