Forms API: Quick Guides for Masterminds

Learn how to use the Forms API to process forms on your website. After reading this guide, you will know how to send forms from your JavaScript code, how to validate forms, and how to modify a form in real time according to the values inserted by the user.Table of ContentsFORMS APIProcessing FormsValidationCustom ErrorsThe invalid EventThe ValidityState ObjectPseudo-ClassesValid and InvalidOptional and RequiredIn-range and Out-of-rangeQUICK REFERENCEMethodsEventsValidationThis guide assumes that you have a basic knowledge of HTML, CSS and JavaScript, and you know how to create files and upload them to a server. If you don't know how to program in HTML, CSS or JavaScript, you can download our guides Introduction to HTML, Introduction to CSS, and Introduction to JavaScript. For a complete course on web development, read our book HTML5 for Masterminds.This guide is a collection of excerpts from the book HTML5 for Masterminds. The information included in this guide will help you understand a particular aspect of web development, but it will not teach you everything you need to know to develop a website or a web application. If you need a complete course on web development, read our book HTML5 for Masterminds. For more information, visit our website at

Author: J.D Gauchat

Learn more