-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (41 loc) · 1.68 KB
/
index.html
File metadata and controls
43 lines (41 loc) · 1.68 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Airline Ticket Reservation</title>
<link href="/css/styles.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<img src="https://shorturl.at/joCM6" alt="Airline Image" width="300" height="90">
<h1>Airline Ticket Reservation</h1>
</header>
<form id="ticketForm">
<div class="form-group">
<label for="email">Email Address:</label>
<input type="email" id="email" name="email" required>
<span id="emailError" style="color: red; display: none;">Please enter a valid email address.</span>
</div>
<div class="form-group">
<label for="destination">Destination:</label>
<input type="text" id="destination" name="destination" required>
</div>
<div class="form-group">
<label for="flightDate">Flight Date:</label>
<input type="date" id="flightDate" name="flightDate" required>
</div>
<div class="form-group">
<label for="roundTrip">Round-Trip:</label>
<input type="checkbox" id="roundTrip" name="roundTrip">
</div>
<div class="form-group" id="returnDateGroup" style="display: none;">
<label for="returnDate">Return Date:</label>
<input type="date" id="returnDate" name="returnDate">
</div>
<button type="submit">Reserve Ticket</button>
</form>
</div>
<script src="script.js"></script>
</body>
</html>