input pattern Attribute - An <input> element with type="email" that must be in the following order: characters@characters.domain - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input

Description

input pattern Attribute - An <input> element with type="email" that must be in the following order: characters@characters.domain

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<form action="/action_page.php">
  E-mail: <input type="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$">
  <input type="submit">
</form><!--from  w  w  w .jav a  2 s  .  co m-->

</body>
</html>

Related Tutorials