The community is working on translating this tutorial into Portuguese, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".
If you are fluent in Portuguese, then please help us - just point to any untranslated element inside the article and click the translation button to get started. Or have a look at the current translation status for the Portuguese language.
If you see a translation that you think looks wrong, then please consult the original article to make sure and then use the vote button to let us know about it.
Please help us by translating the following metadata for the article/chapter, if they are not already translated.
If you are not satisfied with the translation of a specific metadata item, you may vote it down - when it reaches a certain negative threshold, it will be removed. Please only submit an altered translation of a metadata item if you have good reasons to do so!
Form validation using HTML5
The fields in a form are there to gather information from your visitors, but no matter how much time you spend setting up your form there is going to be at least some of your visitors who gets confused filling out your form, might skip important parts of your form, type invalid values (who has ever heard of an email address with a space in it?) and the result? They click submit and you end up getting a whole lot of more or less useless data.
And this is where validation enters – if you validate your inputfields before the data is sent to your inbox or database, then the visitor gets a chance to correct the data and this means that the chance of you getting the data you actually asked for, improves.