<input type="email"/> or
<input type="email" />
HTML5 only. Creates a text input for entering one or more email addresses. The user agent may look for patterns to confirm the entry is in email address format.
This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.
on) or requires the user to enter the information every time (
off). Omitting this attribute causes the control to inherit the
autocompletesetting for the associated
datalistelement. The value of the list attribute is the
idof the associated
reset. Assigns a name to the control; a script program uses this name to reference the control.
titleattribute can be used with
patternto provide a description of the expected pattern/format of the input.
typeis set to
search), measured in number of characters. Users may type entries that are longer than the space provided, causing the field to scroll to the right.
<input type="email" name="post" value="email@example.com">