-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (43 loc) · 1.44 KB
/
index.html
File metadata and controls
47 lines (43 loc) · 1.44 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
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Required Field Validation</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-200 justify-center items-center h-screen flex">
<form class="bg-white p-6 rounded-lg w-80 shadow-md">
<h2 class="text-xl font-bold mb-4 text-center">Login</h2>
<label for="" class="text-sm font-medium text-gray-700"
>Username :
</label>
<input
type="text"
class="w-full p-2 border focus:ring-2 focus:ring-blue-400 rounded"
/>
<p class="text-red-500 text-sm mt-1">Username is required</p>
<label for="" class="block text-sm font-medium text-gray-700"
>Email :
</label>
<input
type="text"
class="w-full p-2 border rounded mt-1 focus:ring-2 focus:ring-blue-400"
/>
<p class="text-red-500 text-sm mt-1">Email is required</p>
<label for="" class="text-sm font-medium text-gray-700"
>Password :
</label>
<input
type="text"
class="w-full p-2 border focus:ring-2 focus:ring-blue-400 rounded"
/>
<p class="text-red-500 text-sm mt-1">Password is required</p>
<button
class="w-full bg-blue-600 p-2 mt-4 text-white hover:bg-blue-700 rounded-md"
>
Submit
</button>
</form>
</body>
</html>