-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html
60 lines (57 loc) · 1.85 KB
/
form.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Form Validation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Pre-paid Parking Form</h1>
<form id="parking-form">
<div class="input-field" id="name-field">
<label for="name">Name</label>
<input id="name" type="text">
</div>
<div class="input-field" id="car-field">
<label for="car-year">Car</label>
<div class="input-group">
<input id="car-year" type="number" placeholder="Year">
<input id="car-make" type="text" placeholder="Make">
<input id="car-model" type="text" placeholder="Model">
</div>
</div>
<div class="input-field" id="start-date-field">
<label for="start-date">Date parking</label>
<input id="start-date" type="date">
</div>
<div class="input-field" id="days-field">
<label for="days">Number of days</label>
<input id="days" type="number" max=30>
</div>
<div class="input-field" id="credit-card-field">
<label for="credit-card">Credit Card</label>
<input id="credit-card" type="text">
</div>
<div class="row">
<div class="col">
<div class="input-field" id="cvv-field">
<label for="cvv">CVV</label>
<input id="cvv" type="number">
</div>
</div>
<div class="col">
<div class="input-field" id="expiration-field">
<label for="expiration">Expiration</label>
<input id="expiration" type="text" placeholder="MM/YY">
</div>
</div>
</div>
<div class="input-field">
<button id="submit-button" type="submit">Make reservation</button>
</div>
</form>
<div id="total"></div>
<script src="script.js" defer></script>
</body>
</html>