-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (50 loc) · 2.08 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
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css" integrity="sha256-46qynGAkLSFpVbEBog43gvNhfrOj+BmwXdxFgVK/Kvc=" crossorigin="anonymous" />
<title>JavaScript Form Validation</title>
</head>
<body>
<div class="container">
<div class="header">
<h2>Formulario de registro</h2>
</div>
<form class="form" id="form">
<div class="form-control">
<label>Usuario</label>
<input type="text" id="username" placeholder="Ingresa tu usuario">
<i class="fas fa-check-circle"></i>
<i class="fas fa-exclamation-circle"></i>
<small>Mensaje de error</small>
</div>
<div class="form-control">
<label>Email</label>
<input type="email" id="email" placeholder="ingresa@tuemail.com">
<i class="fas fa-check-circle"></i>
<i class="fas fa-exclamation-circle"></i>
<small>Mensaje de error</small>
</div>
<div class="form-control">
<label>Contraseña</label>
<input type="password" id="password" placeholder="Ingresa tu contraseña">
<i class="fas fa-check-circle"></i>
<i class="fas fa-exclamation-circle"></i>
<small>Mensaje de error</small>
</div>
<div class="form-control">
<label>Repite tu contraseña</label>
<input type="password" id="password2" placeholder="Repite tu contraseña">
<i class="fas fa-check-circle"></i>
<i class="fas fa-exclamation-circle"></i>
<small>Mensaje de error</small>
</div>
<button type="submit">Enviar</button>
</form>
</div>
<script src="script.js"></script>
</body>
</html>