HTLM formularios Flashcards

1
Q

Crear un formulario que se envie a x dirección

A

form action=”x”
(…)
/form

x es una ruta o url

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Indicar una forma de envio x de un formulario con una codificacion y

A

form action=”” method=”x” enctype=”y”
(…)
/form

x es get o post, siendo get visible y post mas seguro
y es application/x-www-form-urlencoded, multipart/form-data o text/plain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Desactivar autocompletado para un elemento o elementos anidados del formulario

A

n autocomplete=”off”
(…)
/n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Agrupar varios campos de formulario y ponerle un título x

A

fieldset
-> legend x /legend
-> (…)
/fieldset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Poner un cuadro de texto x con label y en un formulario

A

label for=”x” y /label
textarea id=”x”
/textarea

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Poner un selector x de opciones y con label z, selección multiple, en un formulario

A
label for="x" z /label
select id="x" multiple
-> option value="y1"  y1  /option
-> option value="y2"  y2  /option
-> (...)
/select
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Agrupar opciones x con un nombre y, dentro de un elemento select en un formulario

A
optgroup label="y"
   option value="x1"  x1  /option
   option value="x2"  x2  /option
   (...)
/optgroup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Hacer que un elemento input x sea enfocado automáticamente cuando la página carga

A

input type=”x” autofocus /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Hacer que un elemento input x este solo deshabilitado

A

input type=”x” disabled /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Hacer que un elemento input x este deshabilitado y sea incopiable

A

input type=”x” readonly /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Hacer que un elemento input x sea obligatorio

A

input type=”x” required /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Poner nombre x a un elemento del formulario y

A

y name=”x”

/y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Hacer que un elemento input x tenga una pista y

A

input type=”x” placeholder=”y” /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Hacer que un elemento input x tenga un tamaño indicado en numero de caracteres

A

input type=”x” size=”y” /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Poner un elemento input para cuadro de texto con un limite de caracteres entre x - y

A

input type=”text” minlenght=”x” maxlenght=”y” /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Poner un elemento input para contraseña

A

input type=”password” /

17
Q

Poner un elemento input que borre todos los valores del formulario

A

input type=”reset” /

18
Q

Poner un elemento input para direcciones web

A

input type=”url” /

19
Q

Poner un elemento input para numeros de telefono con patron de caracteres x

A

input type=”tel” pattern=”x” /

x es un patrón de caracteres estilo [x]{x}-[x]{x}

20
Q

Poner un elemento input para direcciones de correo electronico

A

input type=”email” /

21
Q

Poner un elemento input para cuadros de busqueda

A

input type=”search” /

22
Q

Poner un elemento input para introducir año, mes, día, hora

A

input type=”datetime” /

23
Q

Poner un elemento input para introducir año, mes, día

A

input type=”date” /

24
Q

Poner un elemento input para introducir año, mes

A

input type=”month” /

25
Poner un elemento input para introducir año, semana
input type="week" /
26
Poner un elemento input para introducir horas y minutos
input type="time" /
27
Poner un elemento input para subir un archivo
input type="file" /
28
Poner un elemento input que es un botón cualquiera de nombre x
input type="button" value="x" /
29
Poner un elemento input para enviar el formulario
input type="submit" /
30
Poner un elemento input oculto para el usuario
input type="hidden" /
31
Poner elementos input para grupo de x elecciones con casillas marcadas
input type="checkbox" name="x1" value="x3"/ input type="checkbox" name="x2" value="x4"/ (...)
32
Poner elementos input para grupo de x elecciones con una posibilidad
input type="radio" name="x" value="x1" / input type="radio" name="x" value="x2" / (...)
33
Poner un elemento input de casilla marcada por defecto
input type="checkbox" checked /
34
Poner un elemento input para un botón de enviar con imagen propia, con ruta x, texto alternativo y, y dimensiones z w
input type="image" src="x" alt="y" height="z" width="w" /
35
Poner un elemento input para campo de valor numerico entre x - y
input type="number" min="x" max="y" /
36
Poner un elemento input para introducir un color
input type="color" /
37
Poner un elemento input para seleccionar un valor de un rango desde x a y, con un salto de z
input type="range" min="x" max="y" step="z" /