Picto thématique

Rule n° 93 - Email, URL, telephone number, search, password, and date and time input fields are assigned an appropriate input type.

In forms, you can specify what types of data are expected. This has many advantages. This allows mobile operating systems to display alternative keyboards or to verify that the data meets some form or syntax. In short, it ihas great value.

#Forms #Development #Mobile

Goal

  • Allow the use of virtual keyboards adapted to the different input modes on mobile devices.
  • Facilitate submission of the input data.
  • Improve compatibility with mobile terminals.

Implementation

Provide each input element concerned with a type attribute corresponding to the expected input: email, url, tel, number, search, password, date, time.

Control

Check, for each input element concerned, that there is a type attribute with the value corresponding to the type of input expected: email, url, tel, number, search, password, date, time.

By Opquast - Read the license