HTML DOM Input Email pattern property
Examples
Gets the value of the email field pattern properties:
x The output is:
try it"
Definition and Usage
pattern attribute is used to set or return the value of the email field pattern property.
pattern attribute describes a regular expression that is used to verify the value of the email field.
Tip: Use the global the HTML title attribute or the DOM title attributes to help the user describe mode.
Hint: You can find out in our JavaScript tutorial regular expressions .
Tip: Similarly, you can also view our JavaScript regular expression reference manual .
Browser Support
Internet Explorer 10, Firefox, Opera, and Chrome browser support pattern attribute.
Note: Internet Explorer 9 and earlier versions of IE, Safari browser does not support pattern attribute.
Note: Internet Explorer 9 and earlier versions of IE, Safari browser does not support <input type = "email"> element.
grammar
Returns pattern properties:
Set the pattern properties:
Property Value
value | description |
---|---|
regexp | Describes a verification email to field regular expression |
technical details
return value: | String representing a regular expression |
---|
Related Pages
HTML Reference Manual: HTML <the INPUT> pattern property