Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

PROGRAMACIÓN WEB

DOCENTE: Luis Carlos Castiblanco Y.

Código para generar formularios en HTML


1.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Creaci�n de Formularios</title>
</head>
<body>
<H1>FORMULARIOS</H1>
<FORM_ACTION="mailto:unaprueba" METHOD="POST">
<INPUT TYPE ="text" NAME ="NOMBRE"><BR>
<INPUT TYPE ="password" NAME ="contrase�a"><BR>
<INPUT TYPE ="radio" NAME = "boton1"value="1">HOMBRE
<INPUT TYPE ="radio" NAME = "boton1"value="2">MUJER
<INPUT TYPE="checkbox" NAME ="Moto"value="Si">MOTO
<INPUT TYPE="checkbox" NAME ="Carro"value="">CARRO
<BR><BR>
<INPUT TYPE="SUBMIT"><INPUT TYPE ="reset">
</body>
</html>

Mostrará el siguiente esquema


PROGRAMACIÓN WEB
DOCENTE: Luis Carlos Castiblanco Y.

2.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Creaci�n de Formularios</title>
</head>
<body>
<H1>FORMULARIOS</H1>
<FORM_ACTION="mailto:unaprueba" METHOD="POST" enctype="text/plain"
name="miform">
<button name="boton_1" type="button">PREGUNTAS
<table width="10" cellspacing="0" cellpadding="2" border="1">
<tr>
<td>UNO</td>
<td>DOS</td>
</tr>
<TR>
<td>TRES</td>
<td>CUATRO</td>
</TR>
</table>
</button>
</body>
</html>

3.
<!doctype html>
<html>
<head>
PROGRAMACIÓN WEB
DOCENTE: Luis Carlos Castiblanco Y.
<meta charset="utf-8">
<title>Creaci�n de Formularios</title>
</head>
<body>
<H1>FORMULARIOS</H1>
<FORM_ACTION="mailto:unaprueba" METHOD="POST">
<textarea cols="50" rows="10" name ="texto">
</textarea>
<BR><BR>
<INPUT TYPE="SUBMIT"><INPUT TYPE ="reset">
</body>
</html>

4.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Creaci�n de Formularios</title>
</head>
<body>
<H1>FORMULARIOS</H1>
<FORM_ACTION="mailto:unaprueba" METHOD="POST">
<select name="Colores" multiple>
PROGRAMACIÓN WEB
DOCENTE: Luis Carlos Castiblanco Y.
<option value="r">Rojo</option>
<option value="az">Azul</option>
<option value="am">Amarillo</option>
</select><br><br>
<select name="Colores" size="1" >
<option value="r">Rojo</option>
<option value="a">Azul</option>
<option value="a">Amarillo</option>
</select>
<BR><BR>
<INPUT TYPE="SUBMIT"><INPUT TYPE ="reset">
</body>
</html>

You might also like