martes, 29 de diciembre de 2015

Formulario de Registro 2

Módulo 3. Actividad 3.20

Formulario de Registro 2

Código HTML:

<html>
<head>
<title>
Formulario de Registro - Mi web</title></head>
<body>
<h1>Formulario de Registro</h1>
<form action="" method="get">
<p><label for="nombre"><strong>Nombre: </label></strong><input type="text" name="nombre" id="nombre" maxlength="50"/></p>
<p><label for="apellidos"><strong>Apellidos: </strong></label><input type="text" name="apellidos" id="apellidos" maxlength="50"/></p>
<p><strong>Sexo: </strong><input type="radio" name="sexo" id="sexo-h" value="h"/><label for="sexo-h"> Hombre</label> <input type="radio" name="sexo" id="sexo-m" value="m"/> <label for="sexo-m">Mujer</label></p>
<p><label for="correo"><strong>Correo Electrónico:</label> </strong><input type="text" name="correo" id="correo" maxlength="100"/></p>
<p><label for="poblacion">Población:</label>
<select name="poblacion" id="poblacion">
<option>Alicante</option>
<option>Madrid</option>
<option>Sevilla</option>
<option>Valencia</option></select></p>
<p><label for="descripcion">Descripción:</label>
<textarea name="descripcion" id="descripcion" rows="6" cols="60"></textarea></p>
<p><input type="checkbox" name="info" id="info" checked="checked"/> <label for="info">Deseo recibir información sobre novedades y ofertas.</label></p>
<p><input type="checkbox" name="condiciones" id="condiciones"/> <label for="condiciones">Declaro haber leído y aceptar las condiciones generales del programa y la normativa sobre protección de datos.</label></p>
<p><input type="submit" value="Enviar"/></p>
</form>
</body>
</html>


En navegador se ve:

Formulario de Registro



Sexo:   
 
 
 
 
 

No hay comentarios:

Publicar un comentario