We would like to know how to check validity of HTML5 forms with pattern.
<!DOCTYPE html>
<html>
<body>
<form>
<label> Part number: <input pattern="[0-9][A-Z]{3}"
name="part"
title="A part number is a digit followed by three uppercase letters." />
</label>
<button>submit</button>
</form><!-- w w w.j ava 2 s . c o m-->
</body>
</html>
The code above is rendered as follows: