Skip to content

Instantly share code, notes, and snippets.

@ashozee
Created July 15, 2017 16:45
Show Gist options
  • Save ashozee/f0715e190b814645207e660fa166939b to your computer and use it in GitHub Desktop.
Save ashozee/f0715e190b814645207e660fa166939b to your computer and use it in GitHub Desktop.
i will try my best but this would not work properly so please tell me whats wrong there
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form>
<table border="1" cellpadding="10" align="center">
<tr>
<th><label>CNIC</label></th>
<td><input type="text" pattern="[0-9]{5}-[0-9]{7}-[0-9]{1}" title="please write like this xxxxx-xxxxxxx-x "></td>
</tr>
<tr>
<th><label>Phone Number</label></th>
<td> <input type="tel" pattern="^[/+][/(]/d{2}[/)/d{8}" title="please enter like this +(92)xxxxxxxx">
</td>
</tr>
<tr>
<th><label>Website Name Here</label></th>
<td><input type="text" pattern="[a-z]{3}.[a-z]{}.[a-z]{3}" title="it should be like www.yourweb.com"></td>
</tr>
<tr>
<th colspan="2"> <button type="submit"> save </button></th>
</tr>
</table>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment