HTML5 text input types are supported in YII2. These types include:
With YII2 you can specify the input type as this:
- $form->field($model, 'email')->input('email')
This would set the input type to ’email’ which is useful for mobile apps. This will bring up the e-mail keyboard. The number keyboard can also be supported by using input(‘number’).