HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

12 - Input and Validation


Developers use Web forms as the interface to collect information


from Web site and client application users. HTML input elements serve to


build a form’s interface and ensure that information is collected from users


consistently. Validation ensures that the entered information is in the correct


format and usable before sending the data to the server.


In HTML, input and validation apply to forms.


Web Forms


A Web form is a page that features input fields where users enter


data. Form input, or the data supplied by users, is sent to a server where it is


processed and stored. Web forms are commonly used when making


purchases, signing up for newsletters, or completing surveys.


The HTML
element defines a form that is used to collect user


input. An HTML form contains form elements.


Form elements are different types of input elements, like text fields,


checkboxes, radio buttons, submit buttons, and more.


The


The element is used to dictate the type of input that is


expected


<!DOCTYPE html>
















Free download pdf