-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooking.html
131 lines (126 loc) · 3.71 KB
/
booking.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=<device-width>, initial-scale=1.0">
<style>
label {
display: block;
margin: auto;
padding-top: 5px;
padding-bottom: 5px;
}
section {
margin:auto;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
h1 {
text-align: center;
font-size: 30px;
margin-top: 5px;
margin-bottom: 20px;
font-weight: bold;
}
p {
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
font-size: 20px;
font-weight: bold;
text-align: center;
background-color: azure;
color: red;
}
input {
display: block;
text-align: center;
color: blue;
border: 2px solid;
}
textarea {
display: block;
}
body {
height: 100vh;
margin: 0;
font-size: x-large;
overflow: hidden;
background-image: url("skin.jpg");
}
form {
width: 50%;
height: 120%;
align-items:center;
background-color:transparent;
margin: 10px;
padding: 10px;
}
.main{
padding: 20px;
margin-left: 40%;
align-items: center;
}
.sub{
margin-top: 15px;
padding: 10px;
background-color: transparent;
font-size: 17px;
border: 2px solid blue;
border-radius: 10%;
}
.sub:hover{
background-color: blue;
color: #ffff;
size-adjust: 10px;
cursor: pointer;
}
.container{
height: 60%;
width: 50%;
border-radius: 30px solid #1111;
background-color: pink;
transform: (-50 -50);
padding: 20px;
}
</style>
<script type="text/javascript">
function validate() {
document.write("Booking successful")
}
</script>
<title>Document</title>
</head>
<body>
<div class="main">
<div class="container">
<section>
<h1>Appointment form</h1>
</section>
<section>
<p>Please book your appointment here</p>
</section>
<section>
<form onsubmit="validate()">
<label for="name">Name
<input type="text" id="name" placeholder="write your name" required/>
</label>
<label for="phone">phone number
<input type="tel" id="phone"placeholder="write your phone number" required/>
</label>
<label for="day">Pick your day
<input type="date" id="day" placeholder="choose your day" required/>
</label>
<label for="message">Reason for appointment
<textarea id="message" rows="5" cols="9" placeholder="i would like to learn ways of..." required></textarea>
</label>
<input type="submit" value="submit" class="sub" />
</form>
</section>
</div>
</div>
</body>
</html>