Code
Execute
<
!
DOCTYPE html
>
<
html
>
<
body
>
<
form
>
Enter the Pincode:
<
input
required type
="text"
name
="pincode"
pattern
="[0-9]{6}"
>
<
input
type
="submit"
>
<
/form
>
<
/body
>
<
/html
>
<! DOCTYPE html> <html> <body> <form > Enter the Pincode: <input required type="text" name="pincode" pattern="[0-9]{6}"> <input type="submit"> </form> </body> </html>
Result