All the Form API types from Drupal 7 continue to exist in Drupal 8. In addition, types based on new HTML 5 components have been added. This includes the following:
- tel: For telephone numbers
- email: For email addresses
- number: For numeric values
- date: For dates
- search: For searching
- range: For values that should be within a range; it can be rendered as a slider
The tel, email, number, and search types extend the text field type and can use any attributes that apply to it as well.
The Form API in Drupal 8 has been integrated with the generic render array. This allows renderable elements to be included natively in the form. In addition, several new types have been added.