Examples of HTML5 and CSS3: Web Forms for making HTML5 validation

Source: Internet
Author: User

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.