Professional Documents
Culture Documents
El elemento <form>
Los formularios en HTML no han cambiado mucho. La estructura sigue siendo la misma,
pero HTML5 ha agregado nuevos elementos, tipos de campo y atributos para
expandirlos tanto como sea necesario y proveer así las funciones actualmente
implementadas en aplicaciones web.
El elemento <input>
<!Doctype html>
<head>
<meta charset="utf-8">
<title>Formularios en HTML </title>
</head>
<body>
<form>
<label> Nombre Completo: </label>
<input type="text" size="30"/>
<br/>
<label>Correo electronico:</label>
<input type="text" size="30"/>
<label>Contraseña:</label>
<input type="password"/>
<br/>
<br/><br/>
<label>Estado Civil</label>
<br/>
<label>
<input type="radio" name="estado"/>
Soltero
</label>
<label>
<input type="radio" name="estado"/>
Casado
</label>
<label>
<input type="radio" name="estado"/>
Separado
</label>
<br/><br/>
<label>Pais de Nacimiento</label>
<br/>
<select>
<option>Brasil</option>
<option>Argentina</option>
<option>Peru</option>
<option>Colombia</option>
</select>
<br/><br/>
<label>Comentarios:</label>
<br/>
<textarea cols="30" rows="10"></textarea>
<br></br>