Drupal form API provides some built in type of element to build a form. But I want to create other type such as:
$form['mail']['#type'] = 'email';
And the output I want it to be:
<input class="input-1" type="email" id="edit-mail" name="mail" maxlength="128">
So, how can i do that?