NCD Guía de Diseño en HTML v6.0
Estructura Básica
Formato Básico
Entrada Básica
Texto y Contraseña
<input type=*><form action=/cgi-bin/post-query method=POST> Su nombre: <input type=text name=nombre><br> Su página web: <input type=text name=pagina value=http://><br> Contraseña: <input type=password name=contrasena><br> <input type=submit><input type=reset> </form>
<input type=* size=**><form action=/cgi-bin/post-query method=POST> <input type=text name=a01 size=40><br> <input type=text name=a02 maxlength=5><br> <input type=submit><input type=reset> </form>
Caja y Radio
<input type=checkbox><form action=/cgi-bin/post-query method=POST> <input type=checkbox name=f01> Banano <input type=checkbox name=f02 checked> Manzana <input type=checkbox name=f03 value=Naranja> Naranja <br><br> <input type=submit><input type=reset> </form>
<input type=radio value=**><form action=/cgi-bin/post-query method=POST> <input type=radio name=frutas> Banano <input type=radio name=frutas checked> Manzana <input type=radio name=frutas value=Naranja> Naranja <br><br> <input type=submit><input type=reset> </form>
Coordenadas de Imagen
<input type=image src=url.gif>
<form action=/cgi-bin/post-query method=POST> <input type=image name=cara src=f.gif><br><br> <input type=radio name=aumento value=2 checked>x2 <input type=radio name=aumento value=4>x4 <input type=radio name=aumento value=6>x6<br><br> <input type=reset> </form>
Elementos Ocultos
<input type=hidden value=*>
<form action=/cgi-bin/post-query method=POST> <input type=hidden name=sumar value=usuario@aqui.com.co> Aquí hay un elemento oculto. <br><br> <input type=submit><input type=reset> </form>
Selección de Archivo
<input type=file>
<form action="url del script" enctype="multipart/form-data" method=POST> <input type=file name=upload> <BR><BR> </form>
Botón
<input type=button value=#>
<form>
<input type=button value="Abrir una Ventana!"
onClick="window.open('samp/050window.htm')">
</form>
Menú de Selección
Menú de Selección - Construcción Básica
<option selected><form action=/cgi-bin/post-query method=POST> <select name=frutas> <option>Banano <option selected>Manzana <option value=Mi_Favorita>Naranja </select><br><br> <input type=submit><input type=reset> </form>
<select size=**>
<form action=/cgi-bin/post-query method=POST> <select name=frutas size=3> <option>Banano <option selected>Manzana <option value=Mi_Favorita>Naranja <option>Durazno </select><br><br> <input type=submit><input type=reset> </form>
<select size=** multiple>
<form action=/cgi-bin/post-query method=POST> <select name=frutas size=3 multiple> <option selected>Banano <option selected>Manzana <option value=Mi_Favorita>Naranja <option selected>Durazno </select><br><br> <input type=submit><input type=reset> </form>
Area de Texto
<textarea name=* rows=** cols=**> ... </textarea>
<form action=/cgi-bin/post-query method=POST> <textarea name=comentario rows=5 cols=30> </textarea> <br><br> <input type=submit><input type=reset> </form>
<textarea wrap=off> ... </textarea>
<textarea wrap=soft> ... </textarea>
<form action=/cgi-bin/post-query method=POST> <textarea wrap=soft name=comentario rows=5 cols=25> </textarea><br><br> <input type=submit><input type=reset> </form>
<textarea wrap=hard> ... </textarea>
<form action=/cgi-bin/post-query method=POST> <textarea wrap=hard name=comentario rows=5 cols=25> </textarea><br><br> <input type=submit><input type=reset> </form>
Estilo Antiguo de Entrada
<isindex prompt=*>
<isindex prompt="Ingrese la palabra clave de la Búsqueda: ">
Estilo de Botón
<button type=*> ... </button><form action=/cgi-bin/post-query method=POST> Su Nombre: <input type=text name=nombre><BR><BR> <button type="submit"><IMG SRC="f.gif"><BR>SUBMIT</button> <button type="reset"><IMG SRC="f.gif"><BR>RESET</button> </form>
Estilo de Campo
<fieldset align=#> ... </fieldset>
<legend align=#> ... </legend>
<form action=/cgi-bin/post-query method=POST>
<fieldset>
<legend>Datos Personales</legend>
Su Nombre: <input type=text name=nombre><br>
E-Mail: <input type=text name=e-mail>
</fieldset>
<fieldset>
<legend align=center>Información de Pago</legend>
Tarjeta de Crédito:<input type=radio name=card>VISA
<input type=radio name=card>MASTER<br>
Expira en: <input type=text name=exp>
</fieldset> <br>
<input type=submit><input type=reset>
</form>
Título
<label for=#><label for="datos_entrada"> Por favor deme su e-mail! </label> <form action=/cgi-bin/post-query method=POST> <input type=text name=e-mail id="datos_entrada"> <input type=submit><input type=reset> </form><-- Haga click en este texto para alcanzar el cajón rápidamente.
Navegación Tabulada
<input tabindex="#">
#=número
<form action=/cgi-bin/post-query method=POST> Nombre: <input type=text tabindex="1"><br> Apellido: <input type=text tabindex="3"><br> Comentario: <input type=text tabindex="2"><br> <input type=submit tabindex="4"><input type=reset> </form>
Control Deshabilitado
<input disabled="#"><form action=/cgi-bin/post-query method=POST> Nombre: <input type=text><br> Apellido: <input type=text disabled="true"><br> </form>
