aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131/lec/Lex8Ex1.html
blob: e08b7efe716b670bba9b816354e7c9d16c227274 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<body>

<h1>Display a Telephone Input Field</h1>

<form action="https://www.cs.umn.edu/">
  <label for="phone">Enter a phone number:</label><br><br>
  <input type="text" pattern="^[2-9]\d{2}-\d{3}-\d{4}$"/>
  <small>Format: 123-456-6789</small><br><br>
  <input type="submit">
</form>

</body>
</html>