HTML5 introduces an email text box. This text box checks for a valid email address. Instead of TYPE=”Text” you use TYPE=”Email”. Here’s the code to try:
<FORM>
<INPUT TYPE=”Email” PLACEHOLDER=”Enter your email address”>
<P>
<INPUT TYPE=”Submit” VALUE=”Submit”>
<INPUT TYPE=”Submit” VALUE=”Submit”>
</FORM>
An older browser that doesn’t recognise TYPE=”Email” will just display a normal text box. So you may as well use the new email TYPE right now, if you need to.
No comments:
Post a Comment