-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormulario.html
More file actions
54 lines (54 loc) · 1.29 KB
/
Formulario.html
File metadata and controls
54 lines (54 loc) · 1.29 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
48
49
50
51
52
53
54
<form name="formulario" id="formulario" method="get" autocomplete="off">
Email: <input type="email" name="mail" id="mail" />
<input type="submit" value="Aceptar" /><br /><br />
Edad;
<input type="number" name="edad" id="edad" min="18" max="100" />
<input type="submit" value="Aceptar" />br><br />
Buscar:
<input type="search" name="buscar" id="buscar" /><br /><br />
URL:
<input type="url" name="URL" id="URL" /><br /><br />
Otras etiquetas: Edad: Con placeholder añado un texto que le de pistas al
<input
type="number"
name="edad"
id="edad"
min="0"
max="100"
step="5"
usuario
sobre
cómo
rellenar
un
campo.
Desaparecerá
placeholder="Introduce edad"
/><br /><br />
cuando el usuario empiece a escribir. Rango:
<input
type="range"
min="0"
Con
el
atributo
required
definimos
un
campo
como
max="100"
step="5"
/><br /><br />
Fecha: <input type="date" obligatorio. name="fecha" id="fecha" /><br /><br />
Con el atributo multiple podemos enviar más de un Hora:
<input type="time" name="hora" id="hora" required /><br /><br />
Código postal:
<input
pattern="(0-
9){5}"
placeholder="5 dígitos"
br
/><br />
<input type="submit" value="Enviar" /><br /><br />
</form>