I would like my e-mail <input> field to be of the type "email" rather than "text" so when people use it on a mobile device it displays the keyboard designed specifically for entering an e-mail address (I'm thinking of the iPhone in particular here).
I would also like to add some other html5 markup to the form, such as adding "required" and "placeholder" to certain <input> fields
How do I do this?