-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (33 loc) · 1.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ficha de datos</title>
</head>
<body style="text-align: center;" >
<h1>Ficha de Datos</h1>
<form onsubmit="fichaCompleta();return false;">
<div>
<label for="nombre">Nombre</label><br>
<input id="nombre" type="text" pattern = "[A-Za-z]{0,50}" title="Completa el campo" required="">
</div><br>
<div>
<label for="apellido">Apellido</label><br>
<input id="apellido" type="text" pattern = "[A-Za-z]{0,50}" required="">
</div><br>
<div>
<label for="number">DNI</label><br>
<input id="dni" type="tel" pattern="[0-9]{8}" maxlength="8" required ="required">
</div><br>
<div>
<label for="direccion">Dirección</label><br>
<input id="direccion" type="text" pattern = "[A-Z a-z]+" required="">
</div><br>
<button type="submit" >Enviar</button>
<input type="reset" value ="Reset!">
</form><br>
<div id="resultado" style="margin-right: 25px" align="text-align:center">
</div>
<script src ="assets/js/javascript.js" type="text/javascript"></script>
</body>
</html>