HTML5 Form API Validation Primer Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

HTML5 Form API Validation Primer Tutorial

HTML5 Form API Validation Primer Tutorial

HTML5 is more than just the โ€œ5โ€ tagged on. Take a look at this list of API related parts to the HTML5 specification.

As you may have gleaned from our recent HTML Input Element Types Randomized History Tutorial a lot of new HTML input elements were added with the view to improving the capabilities of HTML form elements for collecting information from users interactively. Along with that, as you might expect, validation methodologies were improved, as any programmer would tell you, can be one of the most challenging โ€œpractical elementโ€ of web design to do well to not involve user error, or โ€œuser giving upโ€.

The HTML5 form API has great โ€œConstraint Validationโ€, not all new to HTML, but vastly improved and extended, as you can read a lot about at this really great webpage, thanks.

The HTML input attribute we find of great practical benefit with all this is the pattern attribute to define a constraint, in the same sort of vein as a RegEx expressions helps you perform pattern-matching and โ€œsearch and replaceโ€ functions on text. This would be great use for organizations that work with โ€œcodesโ€ or โ€œPart Numbersโ€ or SKU (stock keeping units) that follow a consistent pattern.

You can try some simple Constraint Validation at todayโ€™s liveโœ‚run link with its underlying serverside PHP code you could call html5_form_constraint_validationโšซhtml as you wish.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *