-
Notifications
You must be signed in to change notification settings - Fork 0
Ejerciciodeformulario #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
4-forms-validations/form.html
Outdated
| <label for="name">Apellido</label> | ||
| <input type="text" id="apellido" name="user_name"> <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <label for="name">Apellido</label> | |
| <input type="text" id="apellido" name="user_name"> <br> | |
| <label for="apellido">Apellido</label> | |
| <input type="text" id="apellido" name="last_name"> <br> |
| <label for="date"> fecha</label> | ||
| <input type="date" id="start" name="trip-start" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <label for="date"> fecha</label> | |
| <input type="date" id="start" name="trip-start" | |
| <label for="start">fecha de nacimiento</label> | |
| <input type="date" id="start" name="trip-start" |
4-forms-validations/form.html
Outdated
| <input type="radio" name="Hombre" value="Hombre"> Hombre | ||
|
|
||
| <input type="radio" name="Mujer" value="Mujer"> Mujer <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <input type="radio" name="Hombre" value="Hombre"> Hombre | |
| <input type="radio" name="Mujer" value="Mujer"> Mujer <br> | |
| <select name="gender" id="gender"> | |
| <option value="m">Masculino</option> | |
| <option value="f">Femenino</option> | |
| <option value="o">Otro</option> | |
| </select> |
En la actividad se especifica usar un <select> para el caso del género.
4-forms-validations/form.html
Outdated
| <label for="">Estrato 2 </label> | ||
| <input type="radio" name="socioeconómico"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Para los estratos es necesario usar <input type="radio" /> y todos deben tener el mismo name para que se pueda escoger solamente uno.
4-forms-validations/form.html
Outdated
| <label>Ciclismo<input type="checkbox" id="cbox1" value="checkbox"></label><br> | ||
| <label>Patinaje<input type="checkbox" id="cbox2" value="checkbox"></label><br> | ||
| <label>Gym<input type="checkbox" id="cbox3" value="checkbox"></label><br> | ||
| <label>Baloncesto<input type="checkbox" id="cbox4" value="checkbox"></label><br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <label>Ciclismo<input type="checkbox" id="cbox1" value="checkbox"></label><br> | |
| <label>Patinaje<input type="checkbox" id="cbox2" value="checkbox"></label><br> | |
| <label>Gym<input type="checkbox" id="cbox3" value="checkbox"></label><br> | |
| <label>Baloncesto<input type="checkbox" id="cbox4" value="checkbox"></label><br> | |
| <label for="ciclismo">Ciclismo<input type="checkbox" id="ciclismo" value="checkbox"></label><br> | |
| <label for="patinaje">Patinaje<input type="checkbox" id="patinaje" value="checkbox"></label><br> | |
| <label for="gym">Gym<input type="checkbox" id="gym" value="checkbox"></label><br> | |
| <label for="baloncesto">Baloncesto<input type="checkbox" id="baloncesto" value="checkbox"></label><br> |
El valor de for del label debe coincidir con el id del campo y además es necesario usar nombres explicitos para evitar ambiguedades.
4-forms-validations/form.html
Outdated
| <label>Patinaje<input type="checkbox" id="cbox2" value="checkbox"></label><br> | ||
| <label>Gym<input type="checkbox" id="cbox3" value="checkbox"></label><br> | ||
| <label>Baloncesto<input type="checkbox" id="cbox4" value="checkbox"></label><br> | ||
| <form name="subir-imagen" type="POST" enctype="multipart/formdata" > <input type="file" name="imagen" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <form name="subir-imagen" type="POST" enctype="multipart/formdata" > <input type="file" name="imagen" /> | |
| <input type="file" name="imagen" /> |
Falta el <label> para el campo imagen.
| <label>Gym<input type="checkbox" id="cbox3" value="checkbox"></label><br> | ||
| <label>Baloncesto<input type="checkbox" id="cbox4" value="checkbox"></label><br> | ||
| <form name="subir-imagen" type="POST" enctype="multipart/formdata" > <input type="file" name="imagen" /> | ||
| <button>Enviar</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <button>Enviar</button> | |
| <button type="submit">Enviar</button> |
Es igual el comportamiento por defecto, pero es mejor ser explicitos de la intención del botón.
No description provided.