Foros aprenderaprogramar.com

Aprender a programar => C, C++, C#, Java, Visual Basic, HTML, PHP, CSS, Javascript, Ajax, Joomla, MySql y más => Mensaje iniciado por: Mastermind en 05 de Agosto 2015, 18:28

Título: botones en formularios HTML con texto o imagen ejercicio resuelto CU00724B
Publicado por: Mastermind en 05 de Agosto 2015, 18:28
Posible código solución para este ejercicio:

Código: [Seleccionar]
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>HTML- Botones en formularios</title>
</head>
<body>
<h1>Inscripción al concurso Saber y Ganar</h1>
<form method="get" action="http://aprenderaprogramar.com/">
<pre> Nombre:      <input name="nombre" type="text" value="nombre" />
Apellidos: <input name="apellidos" type="text" value="apellidos" />
Email: <input name="mail" type="text" value="mail" />
Teléfono:    <input name="tlf" type="text" value="telefono" /></pre>
<input type="submit" value="<<Me apunto>>" />
<input type="reset" value="<<Cancelar>>" />
<br/><br/>
</form>
<h1>Petición de información</h1>
<form method="get" action="http://aprenderaprogramar.com/">
<pre> Nombre: <input name="nombre" type="text" value="nombre" />
Pais: <input name="pais" type="text" value="pais" />
Email: <input name="mail" type="text" value="mail" />
Consulta: <textarea name="consulta" rows="3" cols="40">consulta</textarea></pre>
<input name="boton1" type="image" src="http://www.hadipsicologia.com/imagenes/botonEnviar.png" />
<button type="reset">
&lt&ltPulse aquí para cancelar&gt&gt<br/>
&lt&ltEsto borrará los datos&gt&gt
</button>
</form>
</body>
</html>