-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 2.07 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1.0">
<title>Sign Up Form</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
<main class="container">
<section class="form-container">
<form id="signUp" class="form" method="POST" action="form.php">
<div class="form-group">
<input type="text" name="firstName" value="" placeholder="First Name" minlength=3 maxlength=15 pattern="[A-z][a-z]{2,15}" required autofocus>
<div class="error-firstName err error-message"></div>
</div>
<div class="form-group">
<input type="text" name="lastName" value="" placeholder="Last Name">
<div class="error-lastName err error-message"></div>
</div>
<div class="form-group">
<input type="email" name="email" value="" placeholder="Your Email" required >
<div class="error-email err error-message"></div>
</div>
<div class="form-group">
<div id="phoneField">
<select name="countryCode">
<option value="+91" selected>+91</option>
<option value="+921">+92</option>
<option value="+21">+93</option>
</select>
<input type="tel" name="phoneNumber" value="" placeholder="Your Phone Number">
</div>
<div class="error-phoneNumber err error-message"></div>
</div>
<div class="form-group">
<button type="submit" class="btn">SIGN UP</button>
</div>
</form>
</section>
</main>
<script src="script.js"></script>
</body>
</html>