<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7337587047101728523</id><updated>2024-12-19T04:28:35.840+01:00</updated><category term="modulo 1"/><category term="modulo 2"/><category term="formularios"/><category term="css"/><category term="indice"/><category term="plantillas"/><category term="tablas"/><category term="usabilidad"/><category term="accesibilidad"/><category term="mapa sitio web"/><category term="maquetacion"/><category term="robots buscadores"/><category term="seo"/><category term="sitemap"/><category term="ARPA"/><category term="ARPANET"/><category term="Googe búsqueda avanzada"/><category term="INFOVIA"/><category term="Jakob Nielsen"/><category term="analisis competencia"/><category term="ancla"/><category term="button"/><category term="cabecera y pie de tablas"/><category term="campos de seleccion"/><category term="capas"/><category term="caption"/><category term="caracteres escape"/><category term="checkbox"/><category term="clase css"/><category term="cliente-servidor"/><category term="cms"/><category term="colores"/><category term="colores legibles"/><category term="colspan"/><category term="comentarios html"/><category term="comercio electronico"/><category term="contenido web"/><category term="cursiva"/><category term="diagrama sitio web"/><category term="distribucion web"/><category term="div"/><category term="dominios"/><category term="dreamwaver"/><category term="enlaces"/><category term="envío de archivos"/><category term="estructura web"/><category term="fieldset"/><category term="file"/><category term="form"/><category term="fusión de celdas"/><category term="gif"/><category term="google adwords"/><category term="heatmap"/><category term="hexadecimal"/><category term="identificador css"/><category term="imagen"/><category term="imagotipo"/><category term="img"/><category term="input"/><category term="jpg"/><category term="label"/><category term="legend"/><category term="legibilidad"/><category term="listas"/><category term="logotipo"/><category term="mapa"/><category term="mapa calor"/><category term="negrita"/><category term="option"/><category term="palabras clave"/><category term="parrafos de texto"/><category term="password"/><category term="png"/><category term="pseudo-clases"/><category term="radio"/><category term="regla css"/><category term="reglas diseño web"/><category term="reset"/><category term="resolucion"/><category term="rgb"/><category term="rowspan"/><category term="select"/><category term="span"/><category term="submit"/><category term="tabla de Karl Borggrafe"/><category term="table"/><category term="tbody"/><category term="tcp-ip"/><category term="td"/><category term="terminos relevantes"/><category term="text"/><category term="textarea"/><category term="tfoot"/><category term="th"/><category term="thead"/><category term="tr"/><category term="ul ol li"/><title type='text'>Diseño Web y Multimedia (COEPA)</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>43</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-4227534313766742581</id><published>2011-02-15T16:53:00.007+01:00</published><updated>2011-07-18T19:30:39.741+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dreamwaver"/><category scheme="http://www.blogger.com/atom/ns#" term="plantillas"/><title type='text'>Dreamwaver CS5 (I)</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;&lt;strong&gt;Dreamwaver&lt;/strong&gt; es un &lt;strong&gt;editor de páginas web&lt;/strong&gt; creado por la empresa &lt;strong&gt;Adobe&lt;/strong&gt; que permite la creación de sitios web tanto tecleando código html como de forma &lt;strong&gt;visual&lt;/strong&gt;, con lo que también es un editor &lt;a target=&quot;_blank&quot; href=&quot;http://es.wikipedia.org/wiki/WYSIWYG&quot;&gt;WYSIWYG&lt;/a&gt;. La versión con la que hemos trabajado en el curso es la &lt;strong&gt;CS5&lt;/strong&gt;, y &lt;strong&gt;Dreamwaver&lt;/strong&gt; no es un software libre.&lt;/p&gt;

&lt;div align=&quot;center&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAY9-5UVqTvjhU3P_ICVOwNqCYpEXoGxTZBV8dylMm9Xxfy6PawFONGYUstztEzwVfbRpZfaWjRpLc6-WzYluAOJh9KyA-dPV8tpu48JfIoAZeYqVy_ea-naEvSgty7R_x1sC1VWKyx_4/&quot;&gt;&lt;img align=&quot;center&quot; width=500 height=390 src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAY9-5UVqTvjhU3P_ICVOwNqCYpEXoGxTZBV8dylMm9Xxfy6PawFONGYUstztEzwVfbRpZfaWjRpLc6-WzYluAOJh9KyA-dPV8tpu48JfIoAZeYqVy_ea-naEvSgty7R_x1sC1VWKyx_4/s640/Dreamwaver-01.png&quot; alt=&quot;Pantalla inicial de Dreamwaver&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;A rasgos generales, lo mejor de &lt;strong&gt;Dreamwaver&lt;/strong&gt; es la posibilidad de crear &lt;a target=&quot;_blank&quot; href=&quot;http://designweb-coepa.blogspot.com/2010/06/137-consistencia-en-el-diseno.html&quot;&gt;&lt;strong&gt;plantillas&lt;/strong&gt;&lt;/a&gt; para un &lt;strong&gt;sitio web&lt;/strong&gt;, de forma que si necesitamos hacer algún cambio en un sitio web a medio desarrollar, con solo modificar la plantilla y guardar los cambios, Dreamwaver modifica automáticamente todas las páginas de nuestro sitio web creadas anteriormente, en lugar de tener que ir aplicando los cambios manualmente en cada una de las páginas. Esto se hace creando una &lt;strong&gt;Página de plantilla&lt;/strong&gt; desde la pantalla inicial de Dreamweaver, en &lt;strong&gt;Crear nuevo&lt;/strong&gt;, &lt;strong&gt;Más...&lt;/strong&gt;, &lt;strong&gt;Página de plantilla&lt;/strong&gt;, y es posible tener varias plantillas para un mismo sitio web.&lt;/p&gt;

&lt;p&gt;Al crear un &lt;strong&gt;nuevo sitio web&lt;/strong&gt;, debemos indicar a &lt;strong&gt;Dreamwaver&lt;/strong&gt; en que carpeta de nuestro disco duro vamos a alojar sus ficheros, creando así un &quot;&lt;strong&gt;Sitio de Dreamwaver&lt;/strong&gt;&quot;. Podemos administrar varios &lt;em&gt;sitios web&lt;/em&gt; en el panel &quot;&lt;strong&gt;Archivos&lt;/strong&gt;&quot; de la parte inferior derecha. Después creamos la &lt;strong&gt;Página de plantilla&lt;/strong&gt; para nuestro sitio y, añadiendo los elementos html necesarios, se guarda la plantilla.&lt;/p&gt;

&lt;p&gt;En la plantilla se deben definir las &lt;em&gt;zonas editables&lt;/em&gt; que serán las partes del contenido de las distintas páginas de nuestro sitio web, las cuales se irán completando posteriormente, y las zonas &lt;em&gt;no editables&lt;/em&gt; de la plantilla quedarán &quot;protegidas&quot; para que no se puedan modificar por error; estas partes &quot;protegidas&quot; de la plantilla serán donde se están las &lt;a target=&quot;_blank&quot; href=&quot;http://designweb-coepa.blogspot.com/2010/07/modulo-2-capas.html&quot;&gt;capas &lt;em&gt;div&lt;/em&gt;&lt;/a&gt; de las cabeceras y/o columnas de la estructura de dicha plantilla de nuestro sitio, cuyas características serán definidas en la &lt;a target=&quot;_blank&quot; href=&quot;http://designweb-coepa.blogspot.com/2010/06/138-consistencia-en-el-diseno-las-hojas.html&quot;&gt;hoja de estilo css&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Enlazo aquí este otro &quot;&lt;a target=&quot;_blank&quot; href=&quot;http://creacionwebrojales.blogspot.com/&quot;&gt;&lt;strong&gt;Curso de Creación Web&lt;/strong&gt;&lt;/a&gt;&quot; que parece estar orientado a &lt;strong&gt;Dreamwaver&lt;/strong&gt;, pues describe las áreas de trabajo del programa, barras, paneles, y ofrece ejercicios y demás.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/4227534313766742581/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2011/02/dreamwaver-cs5.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4227534313766742581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4227534313766742581'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2011/02/dreamwaver-cs5.html' title='Dreamwaver CS5 (I)'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-4082793877275317345</id><published>2010-08-17T18:27:00.005+02:00</published><updated>2015-01-29T18:07:52.611+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="envío de archivos"/><category scheme="http://www.blogger.com/atom/ns#" term="file"/><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><title type='text'>Formularios: para enviar archivos, atributo &#39;file&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Es para el típico botón &lt;em&gt;Examinar&lt;/em&gt; que aparece en algunas webs, desde el cual se abre una ventana del explorador de archivos con la que buscar un archivo que queremos enviar a una web.&lt;/p&gt;&lt;p&gt;Para que se aplique correctamente, en la etiqueta &lt;strong&gt;&amp;lt;form&amp;gt;&lt;/strong&gt; hay que incluir el atributo y el valor &#39;&lt;strong&gt;enctype=&quot;multipart/form-data&quot;&lt;/strong&gt;&#39;:&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;&amp;lt;form &lt;strong&gt;enctype=&quot;multipart/form-data&quot;&lt;/strong&gt; method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;
&lt;strong&gt;&amp;lt;input type=&quot;file&quot; name=&quot;fichero&quot; /&amp;gt;&lt;/strong&gt;
&amp;lt;/form&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class=&quot;ejemplo&quot;&gt;&lt;form enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;&lt;input type=&quot;file&quot; name=&quot;fichero&quot; /&gt; &lt;/form&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/4082793877275317345/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-para-enviar-archivos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4082793877275317345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4082793877275317345'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-para-enviar-archivos.html' title='Formularios: para enviar archivos, atributo &#39;file&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-3049422030894849417</id><published>2010-08-17T17:16:00.010+02:00</published><updated>2010-08-17T18:08:25.874+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fieldset"/><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="legend"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><title type='text'>Formularios: conjunto de campos, etiqueta &#39;fieldset&#39; y &#39;legend&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Se usan dentro de un formulario para agrupar campos de entrada de datos relacionados, entre las etiquetas &#39;&lt;strong&gt;&amp;lt;fieldset&amp;gt;&lt;/strong&gt;&#39; y &#39;&lt;strong&gt;&amp;lt;/fieldset&amp;gt;&lt;/strong&gt;&#39; se definen los campos de entrada. Justo después de la etiqueta de apertura &#39;&lt;strong&gt;&amp;lt;fieldset&amp;gt;&lt;/strong&gt;&#39; y usa la etiqueta &#39;&lt;strong&gt;&amp;lt;legend&amp;gt;&lt;em&gt;Texto que identifica el &#39;fieldset&#39;&lt;/em&gt;&amp;lt;/legend&amp;gt;&lt;/strong&gt;&#39; para identificar los datos del &#39;fieldset&#39;.&lt;/p&gt;

&lt;p&gt;Posteriormente, seguiremos usando la etiqueta &lt;strong&gt;&amp;lt;label&amp;gt;&lt;/strong&gt; para identificar cada uno de los campos de entrada:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;fieldset&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;legend&amp;gt;Datos personales&amp;lt;/legend&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;label for=&quot;v-nombre&quot;&amp;gt;Nombre: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;v-nombre&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;label for=&quot;v-apellidos&quot;&amp;gt;Apellidos: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;v-apellidos&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;label for=&quot;v-email&quot;&amp;gt;Email: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;v-email&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;label for=&quot;pass&quot;&gt;Contraseña: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;password&quot; name=&quot;pass&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;/fieldset&amp;gt;&lt;/strong&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;submit&quot; name=&quot;enviar&quot; value=&quot;Enviar&quot; /&amp;gt; &amp;lt;input type=&quot;reset&quot; name=&quot;borrar&quot; value=&quot;Borrar todo&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y los campos de entrada dentro del &#39;&lt;strong&gt;fieldset&lt;/strong&gt;&#39; se mostrarán como se puede ver a continuación:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;fieldset&gt;
&lt;legend&gt;Datos personales&lt;/legend&gt;

&lt;label for=&quot;v-nombre&quot;&gt;Nombre: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;v-nombre&quot; /&gt;&lt;br /&gt;

&lt;label for=&quot;v-apellidos&quot;&gt;Apellidos: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;v-apellidos&quot; /&gt;&lt;br /&gt;

&lt;label for=&quot;v-email&quot;&gt;Email: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;v-email&quot; /&gt;&lt;br /&gt;

&lt;label for=&quot;pass&quot;&gt;Contraseña: &lt;/label&gt;
&lt;input type=&quot;password&quot; name=&quot;pass&quot; /&gt;&lt;br /&gt;
&lt;/fieldset&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; name=&quot;enviar&quot; value=&quot;Enviar&quot; /&gt; &lt;input type=&quot;reset&quot; name=&quot;borrar&quot; value=&quot;Borrar todo&quot; /&gt;&lt;br /&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Se pueden poner varios &#39;&lt;strong&gt;fieldset&lt;/strong&gt;&#39; dentro de un mismo formulario para así ir agrupando dentro de cada uno campos de entrada del mismo tipo: &lt;em&gt;datos personales, aficiones, etc&lt;/em&gt;
&lt;/div&gt;

&lt;p&gt;Otro ejemplo con varios &#39;&lt;strong&gt;fieldset&lt;/strong&gt;&#39;:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form&gt;
  &lt;h3&gt;Mantenimiento de clientes&lt;/h3&gt;
  &lt;fieldset&gt;
    &lt;legend&gt;Datos identificativos&lt;/legend&gt;
    
    &lt;div&gt;
    &lt;label for=&quot;nombre&quot;&gt;Nombre:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;nombre&quot; /&gt;
    &lt;/div&gt;    
    
    &lt;div&gt;
    &lt;label for=&quot;apellidos&quot;&gt;Apellidos:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;apellidos&quot; /&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;label for=&quot;direccion&quot;&gt;Dirección:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;direccion&quot; /&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;label for=&quot;ciudad&quot;&gt;Ciudad:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;ciudad&quot; /&gt;
    &lt;/div&gt;
  &lt;/fieldset&gt;

  &lt;fieldset&gt;
    &lt;legend&gt;Datos bancarios&lt;/legend&gt;    

    &lt;div&gt;
    &lt;label for=&quot;banco&quot;&gt;Banco:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;banco&quot; /&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;label for=&quot;agencia&quot;&gt;Agencia:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;agencia&quot; /&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;label for=&quot;cuenta&quot;&gt;Cuenta:&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;cuenta&quot; /&gt;
    &lt;/div&gt;
    
  &lt;/fieldset&gt;
  
  &lt;fieldset&gt;
    &lt;legend&gt;Tipo de pago&lt;/legend&gt;
    
    &lt;div&gt;
    &lt;input type=&quot;radio&quot; name=&quot;tipo_pago&quot; value=&quot;contado&quot; /&gt;
    &lt;label for=&quot;tipo_pago&quot;&gt;Contado&lt;/legend&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;input type=&quot;radio&quot; name=&quot;tipo_pago&quot; value=&quot;credito&quot; /&gt;
    &lt;label for=&quot;tipo_pago&quot;&gt;Crédito&lt;/label&gt;
    &lt;/div&gt;  
  &lt;/fieldset&gt;
  
  &lt;fieldset&gt;
    &lt;legend&gt;Forma de pago&lt;/legend&gt;
    
    &lt;div&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;30dias&quot; value=&quot;30dias&quot; /&gt;
    &lt;label for=&quot;30dias&quot;&gt;30 días&lt;/label&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;60dias&quot; value=&quot;60dias&quot; /&gt;
    &lt;label for=&quot;60dias&quot;&gt;60 días&lt;/label&gt;
    &lt;/div&gt;
    
    &lt;div&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;90dias&quot; value=&quot;90dias&quot; /&gt;
    &lt;label for=&quot;90dias&quot;&gt;90 días&lt;/label&gt;
    &lt;/div&gt;
  &lt;/fieldset&gt;
  
    &lt;div&gt;&lt;input type=&quot;submit&quot; name=&quot;todo&quot; value=&quot;Enviar datos&quot; /&gt;
    &lt;input type=&quot;reset&quot; name=&quot;borrar&quot; value=&quot;Borrar datos&quot; /&gt;&lt;/div&gt;
  &lt;/form&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/3049422030894849417/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-conjunto-de-campos-etiqueta.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/3049422030894849417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/3049422030894849417'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-conjunto-de-campos-etiqueta.html' title='Formularios: conjunto de campos, etiqueta &#39;fieldset&#39; y &#39;legend&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-6325748438721450263</id><published>2010-08-17T16:18:00.009+02:00</published><updated>2010-09-20T16:58:21.474+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="textarea"/><title type='text'>Formularios: área de texto &#39;textarea&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Se usa para definir un área de texto dentro de un formulario, la etiqueta para definir un campo de texto es &#39;&lt;strong&gt;&amp;lt;textarea&amp;gt;&lt;em&gt;Texto de ejemplo&lt;/em&gt;&amp;lt;/textarea&amp;gt;&lt;/strong&gt;&#39;, y su uso es como se muestra a continuación:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;textarea name=&quot;nombre_variable&quot; &amp;gt;Texto de ejemplo&amp;lt;/textarea&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se mostrará lo siguiente:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;textarea name=&quot;nombre_variable&quot;&gt;Texto de ejemplo&lt;/textarea&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;p&gt;Algunos atributos para &lt;strong&gt;&amp;lt;textarea&amp;gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&#39;&lt;strong&gt;cols=&quot;&lt;em&gt;numero-de-columnas&lt;/em&gt;&quot;&lt;/strong&gt;&#39;: se usa para especificar el número de columnas que queremos que tenga el área de texto.

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;textarea name=&quot;nombre_variable&quot; &lt;strong&gt;cols=&quot;50&quot;&lt;/strong&gt;&amp;gt;Texto de ejemplo&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se mostrará lo siguiente:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;textarea name=&quot;nombre_variable&quot; cols=&quot;50&quot;&gt;Texto de ejemplo&lt;/textarea&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&#39;&lt;strong&gt;rows=&quot;&lt;em&gt;numero-de-filas&lt;/em&gt;&quot;&lt;/strong&gt;&#39;: para especificar el número de filas del área de texto.

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;textarea name=&quot;nombre_variable&quot; &lt;strong&gt;rows=&quot;5&quot;&lt;/strong&gt; cols=&quot;15&quot;&amp;gt;Texto de ejemplo&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se mostrará lo siguiente:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;textarea name=&quot;nombre_variable&quot; rows=&quot;5&quot; cols=&quot;15&quot;&gt;Texto de ejemplo&lt;/textarea&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&#39;&lt;strong&gt;readonly=&quot;readonly&quot;&lt;/strong&gt;&#39;: este atributo se usa para mostrar texto, y el usuario del sitio web no puede modificarlo.

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;textarea name=&quot;nombre_variable&quot; &lt;strong&gt;readonly=&quot;readonly&quot;&lt;/strong&gt; rows=&quot;5&quot; cols=&quot;15&quot;&amp;gt;Texto de ejemplo: campo de solo lectura&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se mostrará lo siguiente:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;textarea name=&quot;nombre_variable&quot; readonly=&quot;readonly&quot; rows=&quot;5&quot; cols=&quot;15&quot;&gt;Texto de ejemplo: campo de solo lectura&lt;/textarea&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/6325748438721450263/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formulario-area-de-texto-textarea.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/6325748438721450263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/6325748438721450263'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formulario-area-de-texto-textarea.html' title='Formularios: área de texto &#39;textarea&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-3665653771913175325</id><published>2010-08-17T15:32:00.007+02:00</published><updated>2010-09-15T12:36:20.192+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="campos de seleccion"/><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="option"/><category scheme="http://www.blogger.com/atom/ns#" term="select"/><title type='text'>Formularios: Campos de selección, etiquetas &#39;select&#39; y &#39;option&#39;, atributos &#39;selected&#39; y &#39;multiple&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Los &lt;strong&gt;campos de selección&lt;/strong&gt; son los típicos campos de un formulario en los que hay que escoger opciones de las que aparecen en una lista desplegable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Etiqueta &#39;&lt;strong&gt;&amp;lt;select name=&quot;nombre-variable&quot; &amp;gt;&lt;/strong&gt;&#39;: es para abrir un campo de &lt;strong&gt;selección&lt;/strong&gt;. Dentro de este campo de selección irá una etiqueta &lt;strong&gt;&amp;lt;option value=&quot;valor-de-variable&quot; &amp;gt;&lt;em&gt;texto de la opción a elegir&lt;/em&gt;&amp;lt;/option&amp;gt;&lt;/strong&gt; para cada uno de las opciones del &#39;&lt;strong&gt;select&lt;/strong&gt;&#39;, y después se cierra la etiqueta &#39;&lt;strong&gt;&amp;lt;/select&amp;gt;&lt;/strong&gt;&#39;. Al igual que los otros campos de formulario vistos, el campo &#39;&lt;strong&gt;select&lt;/strong&gt;&#39; debe ir entre las etiquetas de apertura y cierre de formulario &#39;&lt;strong&gt;form&lt;/strong&gt;&#39;:

&lt;p&gt;Aquí se puede usar el atributo &lt;a name=&quot;selected-lnk&quot;&gt;&lt;strong&gt;selected=&quot;selected&quot;&lt;/strong&gt;&lt;/a&gt; para elegir una opción por defecto, del mismo modo que se hacia antes con &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/08/formularios-tipo-checkbox-radio-hidden.html#checked-lnk&quot;&gt;&lt;strong&gt;checked=&quot;checked&quot;&lt;/strong&gt;&lt;/a&gt; en los campos del tipo &#39;&lt;strong&gt;checkbox&lt;/strong&gt;&#39; y &#39;&lt;strong&gt;radio&lt;/strong&gt;&#39;.&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&quot;pais&quot;&amp;gt;Selecciona tu país &amp;lt;/label&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;select name=&quot;pais&quot;&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Italia&quot;&amp;gt;Italia&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Alemania&quot;&amp;gt;Alemania&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Portugal&quot;&amp;gt;Portugal&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option selected=&quot;selected&quot; value=&quot;España&quot;&amp;gt;España&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el código anterior aparecerá así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;pais&quot;&gt;Selecciona tu país &lt;/label&gt;
&lt;select name=&quot;pais&quot; /&gt;
&lt;option value=&quot;Italia&quot;&gt;Italia&lt;/option&gt;
&lt;option value=&quot;Alemania&quot;&gt;Alemania&lt;/option&gt;
&lt;option value=&quot;Portugal&quot;&gt;Portugal&lt;/option&gt;
&lt;option selected=&quot;selected&quot; value=&quot;España&quot;&gt;España&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;p&gt;En este campo también es típico poner una opción vacía, y en este caso no se usa el atributo &#39;&lt;strong&gt;selected&lt;/strong&gt;&#39;:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&quot;pais&quot;&amp;gt;Selecciona tu país &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;select name=&quot;pais&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;option value=&quot;&quot;&amp;gt;&amp;lt;/option&amp;gt;&lt;br /&gt;&lt;/strong&gt;
&amp;lt;option value=&quot;Italia&quot;&amp;gt;Italia&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Alemania&quot;&amp;gt;Alemania&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Portugal&quot;&amp;gt;Portugal&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option selected=&quot;selected&quot; value=&quot;España&quot;&amp;gt;España&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el código:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;pais&quot;&gt;Selecciona tu país &lt;/label&gt;
&lt;select name=&quot;pais&quot; /&gt;
&lt;option value=&quot;&quot;&gt;&lt;/option&gt;
&lt;option value=&quot;Italia&quot;&gt;Italia&lt;/option&gt;
&lt;option value=&quot;Alemania&quot;&gt;Alemania&lt;/option&gt;
&lt;option value=&quot;Portugal&quot;&gt;Portugal&lt;/option&gt;
&lt;option value=&quot;España&quot;&gt;España&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;Atributo &#39;&lt;strong&gt;multiple=&quot;multiple&quot;&lt;/strong&gt;&#39; para la etiqueta &#39;&lt;strong&gt;&amp;lt;select ... &amp;gt;&lt;/strong&gt;&#39;: con este atributo, manteniendo pulsada la tecla &lt;strong&gt;Ctrl&lt;/strong&gt; (CONTROL) del teclado, se pueden seleccionar más de una opción:

&lt;div class=&quot;cita&quot;&gt;Aquí se puede usar el atributo &lt;a href=&quot;#selected-lnk&quot;&gt;&lt;strong&gt;selected=&quot;selected&quot;&lt;/strong&gt;&lt;/a&gt; para elegir más de una opción por defecto.
&lt;/div&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&quot;pais&quot;&amp;gt;Selecciona países en los que has estado &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;select name=&quot;pais&quot; &lt;strong&gt;multiple=&quot;multiple&quot;&lt;/strong&gt; &amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Italia&quot;&amp;gt;Italia&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Alemania&quot;&amp;gt;Alemania&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Portugal&quot;&amp;gt;Portugal&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option &lt;strong&gt;selected=&quot;selected&quot;&lt;/strong&gt; value=&quot;España&quot;&amp;gt;España&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;México&quot;&amp;gt;México&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;India&quot;&amp;gt;India&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;China&quot;&amp;gt;China&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option &lt;strong&gt;selected=&quot;selected&quot;&lt;/strong&gt; value=&quot;Japón&quot;&amp;gt;Japón&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;option value=&quot;Argentina&quot;&amp;gt;Argentina&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Ahora se puede seleccionar más de una opción -manteniendo pulsada la tecla &lt;strong&gt;CONTROL&lt;/strong&gt; (Ctrl) del teclado- y el código aparecerá así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;pais&quot;&gt;Selecciona países en los que has estado &lt;/label&gt;
&lt;select name=&quot;pais&quot; multiple=&quot;multiple&quot; /&gt;
&lt;option value=&quot;Italia&quot;&gt;Italia&lt;/option&gt;
&lt;option value=&quot;Alemania&quot;&gt;Alemania&lt;/option&gt;
&lt;option value=&quot;Portugal&quot;&gt;Portugal&lt;/option&gt;
&lt;option selected=&quot;selected&quot; value=&quot;España&quot;&gt;España&lt;/option&gt;
&lt;option value=&quot;México&quot;&gt;México&lt;/option&gt;&lt;br /&gt;
&lt;option value=&quot;India&quot;&gt;India&lt;/option&gt;&lt;br /&gt;
&lt;option value=&quot;China&quot;&gt;China&lt;/option&gt;&lt;br /&gt;
&lt;option selected=&quot;selected&quot; value=&quot;Japón&quot;&gt;Japón&lt;/option&gt;&lt;br /&gt;
&lt;option value=&quot;Argentina&quot;&gt;Argentina&lt;/option&gt;&lt;br /&gt;
&lt;/select&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/li&gt;

&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/3665653771913175325/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-campos-de-seleccion.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/3665653771913175325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/3665653771913175325'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-campos-de-seleccion.html' title='Formularios: Campos de selección, etiquetas &#39;select&#39; y &#39;option&#39;, atributos &#39;selected&#39; y &#39;multiple&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-2576253715477586150</id><published>2010-08-17T12:25:00.029+02:00</published><updated>2010-09-15T12:33:03.090+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="button"/><category scheme="http://www.blogger.com/atom/ns#" term="checkbox"/><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="radio"/><category scheme="http://www.blogger.com/atom/ns#" term="reset"/><category scheme="http://www.blogger.com/atom/ns#" term="submit"/><title type='text'>Formularios: &#39;checkbox&#39;, &#39;radio&#39;, &#39;hidden&#39;, &#39;submit&#39;, &#39;button&#39;, &#39;reset&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;En esta entrada del blog seguimos con los &lt;em&gt;campos de entrada de formularios&lt;/em&gt; en los que el usuario puede escoger entre una o varias opciones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;type=&quot;checkbox&quot;&lt;/strong&gt;: es para crear casillas de activación, de las que se pueden escoger, en principio, de ninguna a varias opciones:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
Escoge los equipos que te gustan:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-madrid&quot; value=&quot;f-madrid&quot; /&amp;gt;R Madrid&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-barcelona&quot; value=&quot;f-barcelona&quot; /&amp;gt;FC Barcelona&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-bilbao&quot; value=&quot;f-bilbao&quot; /&amp;gt;ATH Bilbao&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;/strong&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el código se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
Escoge los equipos que te gustan:&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-madrid&quot; value=&quot;f-madrid&quot; /&gt;R Madrid&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-barcelona&quot; value=&quot;f-barcelona&quot; /&gt;FC Barcelona&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-bilbao&quot; value=&quot;f-bilbao&quot; /&gt;ATH Bilbao&lt;br /&gt;
&lt;/form&gt;
&lt;/div&gt;

  &lt;ul&gt;
  &lt;li&gt;El atributo: &#39;&lt;a name=&quot;checked-lnk&quot;&gt;&lt;strong&gt;checked=&quot;checked&quot;&lt;/strong&gt;&lt;/a&gt;&#39; se emplea para marcar algunas de las opciones por defecto, el usuario puede desmarcar cualquiera de esas opciones y/o marcar otras:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
Escoge los equipos que te gustan:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-madrid&quot; value=&quot;f-madrid&quot; &lt;strong&gt;checked=&quot;checked&quot;&lt;/strong&gt; /&amp;gt;R Madrid&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-barcelona&quot; value=&quot;f-barcelona&quot; /&amp;gt;FC Barcelona&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-bilbao&quot; value=&quot;f-bilbao&quot; &lt;strong&gt;checked=&quot;checked&quot;&lt;/strong&gt; /&amp;gt;ATH Bilbao&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el código se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
Escoge los equipos que te gustan:&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-madrid&quot; value=&quot;f-madrid&quot; checked=&quot;checked&quot; /&gt;R Madrid&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-barcelona&quot; value=&quot;f-barcelona&quot; /&gt;FC Barcelona&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-bilbao&quot; value=&quot;f-bilbao&quot; checked=&quot;checked&quot; /&gt;ATH Bilbao&lt;br /&gt;
&lt;/form&gt;
&lt;/div&gt;
  &lt;/li&gt;
  &lt;/ul&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;radio&quot;&lt;/strong&gt;: casillas de activación &lt;em&gt;discriminatorias&lt;/em&gt;, el código se mostrará así:

&lt;div class=&quot;cita&quot;&gt;Aquí también se puede usar el atributo &lt;a href=&quot;#checked-lnk&quot;&gt;&lt;strong&gt;checked=&quot;checked&quot;&lt;/strong&gt;&lt;/a&gt;, pero &lt;strong&gt;solo en una de las opciones&lt;/strong&gt;.
&lt;/div&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
Escoge los equipos que te gustan:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input &lt;strong&gt;type=&quot;radio&quot;&lt;/strong&gt; name=&quot;equipo&quot; value=&quot;madrid&quot; /&amp;gt;R Madrid&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;barcelona&quot; /&amp;gt;FC Barcelona&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;bilbao&quot; &lt;strong&gt;checked=&quot;checked&quot;&lt;/strong&gt;/&amp;gt;ATH Bilbao&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
Escoge los equipos que te gustan:&lt;br /&gt;
&lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;madrid&quot; /&gt;
&lt;label for=&quot;equipo&quot;&gt;R Madrid&lt;/label&gt;&lt;br /&gt;
&lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;barcelona&quot; /&gt;
&lt;label for=&quot;equipo&quot;&gt;FC Barcelona&lt;/label&gt;&lt;br /&gt;
&lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;bilbao&quot; checked=&quot;checked&quot; /&gt;
&lt;label for=&quot;equipo&quot;&gt;ATH Vilbao&lt;/label&gt;&lt;br /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;hidden&quot;&lt;/strong&gt;: campos ocultos, para enviar datos de control, guardar información que el usuario rellenó antes, etc... tiene muchas utilidades para el webmaster:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input &lt;strong&gt;type=&quot;hidden&quot;&lt;/strong&gt; name=&quot;nombre_de_variable&quot; value=&quot;cualquiera&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;nobre-variable&quot; value&quot;123&quot; /&gt;
&lt;/form&gt;&lt;em&gt;No muestra nada, es un campo oculto&lt;/em&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;submit&quot;&lt;/strong&gt;: para el tipico botón &lt;strong&gt;ENVIAR&lt;/strong&gt;:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input &lt;strong&gt;type=&quot;submit&quot;&lt;/strong&gt; name=&quot;enviar&quot; value=&quot;Enviar&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;input type=&quot;submit&quot; name=&quot;enviar&quot; value=&quot;Enviar&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;button&quot;&lt;/strong&gt;: como submit, pero con el atributo &lt;strong&gt;ONCLICK&lt;/strong&gt;, con el que se especifica la acción a tomar cuando se pulse el botón:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input &lt;strong&gt;type=&quot;button&quot;&lt;/strong&gt; name=&quot;nombre2&quot; value=&quot;Elección&quot; &lt;strong&gt;onclick=&quot;ejemplo(ejemplo)&quot;&lt;/strong&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;input type=&quot;button&quot; name=&quot;nombre2&quot; value=&quot;Elección&quot; onclick=&quot;ejemplo(ejemplo)&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;reset&quot;&lt;/strong&gt;: otro botón, este borra todos los datos del formulario y lo pone como estaba al principio... casi no se usa actualmente:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input &lt;strong&gt;type=&quot;reset&quot;&lt;/strong&gt; name=&quot;nombre-variable&quot; value=&quot;Borrar todo&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;input type=&quot;reset&quot; name=&quot;nombre-variable&quot; value=&quot;Borrar todo&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;image&quot;&lt;/strong&gt;: es para que el navegador muestre una imagen en lugar del típico botón, como se muestra en el ejemplo siguiente, se comporta igual que &#39;&lt;strong&gt;type=&quot;submit&quot;&lt;/strong&gt;&#39;:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input &lt;strong&gt;type=&quot;image&quot;&lt;/strong&gt; src=&quot;url-imagen.gif&quot; name=&quot;enviar&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;input type=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYwjQimcqWayrveCd8xRwnPNyF64pogmW3u9XC60PC66sTFmY5DCkFwZJMtJ0UZ3ugzEe253Jq-hlZrDtGODAMPSJvLi6WY0NHbDe1FHN9mGo8NLimZ4f7hezNdCdw-bzZ4BWyBRLX5PK9/&quot; name=&quot;enviar&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;Ejemplo de formulario con varios de los campos vistos&lt;/h2&gt;

&lt;p&gt;Primero el código HTML&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;

&amp;lt;label for=&quot;v-nombre&quot;&amp;gt;Nombre: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;v-nombre&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;label for=&quot;v-apellidos&quot;&amp;gt;Apellidos: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;v-apellidos&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;label for=&quot;v-email&quot;&amp;gt;Email: &amp;lt;/label&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;v-email&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;label for=&quot;pass&quot;&amp;gt;Contraseña: &amp;lt;/label&amp;gt&lt;br /&gt;
&amp;lt;input type=&quot;password&quot; name=&quot;pass&quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;hr /&amp;gt;&lt;br /&gt;

Escoge los equipos que conoces de la lista:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-madrid&quot; value=&quot;f-madrid&quot; /&amp;gt;R Madrid&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-barcelona&quot; value=&quot;f-barcelona&quot; /&amp;gt;FC Barcelona&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;f-bilbao&quot; value=&quot;f-bilbao&quot; /&amp;gt;ATH Bilbao&amp;lt;br /&amp;gt;&lt;br /&gt;

&amp;lt;hr /&amp;gt;&lt;br /&gt;

Escoge tu favorito de la lista:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;madrid&quot; /&amp;gt;R Madrid&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;barcelona&quot; /&amp;gt;FC Barcelona&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;bilbao&quot; /&amp;gt;ATH Bilbao&amp;lt;br /&amp;gt;&lt;br /&gt;

&amp;lt;input type=&quot;submit&quot; name=&quot;enviar&quot; value=&quot;Enviar&quot; /&amp;gt;
&amp;lt;input type=&quot;reset&quot; name=&quot;borrar&quot; value=&quot;Borrar todo&quot; /&amp;gt;&amp;lt;br /&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y se visualizará así:&lt;/p&gt;

&lt;div class=&quot;cita&quot;&gt;Puedes probar sin miedo, ya que los datos no se envían a ninguna parte...&lt;/div&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;

&lt;label for=&quot;v-nombre&quot;&gt;Nombre: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;v-nombre&quot; /&gt;&lt;br /&gt;

&lt;label for=&quot;v-apellidos&quot;&gt;Apellidos: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;v-apellidos&quot; /&gt;&lt;br /&gt;

&lt;label for=&quot;v-email&quot;&gt;Email: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;v-email&quot; /&gt;&lt;br /&gt;

&lt;label for=&quot;pass&quot;&gt;Contraseña: &lt;/label&gt;
&lt;input type=&quot;password&quot; name=&quot;pass&quot; /&gt;&lt;br /&gt;

&lt;hr /&gt;

Escoge los equipos que conoces de la lista:&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-madrid&quot; value=&quot;f-madrid&quot; /&gt;R Madrid&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-barcelona&quot; value=&quot;f-barcelona&quot; /&gt;FC Barcelona&lt;br /&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;f-bilbao&quot; value=&quot;f-bilbao&quot; /&gt;ATH Bilbao&lt;br /&gt;

&lt;hr /&gt;

Escoge tu favorito de la lista:&lt;br /&gt;
&lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;madrid&quot; /&gt;
&lt;label for=&quot;equipo&quot;&gt;R Madrid&lt;/label&gt;&lt;br /&gt;
&lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;barcelona&quot; /&gt;
&lt;label for=&quot;equipo&quot;&gt;FC Barcelona&lt;/label&gt;&lt;br /&gt;
&lt;input type=&quot;radio&quot; name=&quot;equipo&quot; value=&quot;bilbao&quot; /&gt;
&lt;label for=&quot;equipo&quot;&gt;ATH Vilbao&lt;/label&gt;&lt;br /&gt;

&lt;input type=&quot;submit&quot; name=&quot;enviar&quot; value=&quot;Enviar&quot; /&gt;
&lt;input type=&quot;reset&quot; name=&quot;borrar&quot; value=&quot;Borrar todo&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;se pueden aplicar &lt;strong&gt;reglas CSS&lt;/strong&gt; para personalizar el estilo en el que se mostrarán nuestros formularios, así como &lt;strong&gt;capas &#39;div&#39;&lt;/strong&gt; con un ancho definido (&lt;span class=&quot;rojo&quot;&gt;width: &lt;em&gt;55&lt;/em&gt;px;&lt;/span&gt;) para alinear los campos del formulario a rellenar...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/2576253715477586150/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-tipo-checkbox-radio-hidden.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/2576253715477586150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/2576253715477586150'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-tipo-checkbox-radio-hidden.html' title='Formularios: &#39;checkbox&#39;, &#39;radio&#39;, &#39;hidden&#39;, &#39;submit&#39;, &#39;button&#39;, &#39;reset&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-4134561284537820508</id><published>2010-08-17T02:00:00.011+02:00</published><updated>2010-09-15T12:17:16.136+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="input"/><category scheme="http://www.blogger.com/atom/ns#" term="label"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="password"/><category scheme="http://www.blogger.com/atom/ns#" term="text"/><title type='text'>Formularios: Campos &quot;simples&quot; de entrada de formularios. Etiquetas &#39;input&#39;, &#39;label&#39; y atributos &#39;type&#39;, &#39;name&#39;, &#39;value&#39;...</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Los campos de entrada de formularios deben ir entre las etiquetas de formulario &lt;strong&gt;&amp;lt;form ... /&amp;gt;&lt;/strong&gt; y &lt;strong&gt;&amp;lt;/form&amp;gt;&lt;/strong&gt; vistas en la &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/08/formularios-etiqueta-form-y-atributos.html&quot;&gt;entrada anterior&lt;/a&gt;, cada uno de estos campos se especifican con la etiqueta&lt;br /&gt;&lt;strong&gt;&amp;lt;input type=&quot;&lt;em&gt;tipo_de_campo_entrada&lt;/em&gt;&quot; ... /&amp;gt;&lt;/strong&gt;, y las clases o &lt;em&gt;tipos&lt;/em&gt; de campos de entrada &#39;&lt;strong&gt;type&lt;/strong&gt;&#39; son:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;type=&quot;text&quot;&lt;/strong&gt;, tipo de datos &lt;a target=&quot;_blank&quot; href=&quot;http://es.wikipedia.org/wiki/C%C3%B3digo_alfanum%C3%A9rico&quot;&gt;alfanumerico&lt;/a&gt;, a los que se le debe poner el atributo &#39;&lt;strong&gt;name&lt;/strong&gt;&#39; con el valor del &lt;em&gt;nombre de variable&lt;/em&gt;, el cual podemos elegir libremente:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;input type=&quot;text&quot; name=&quot;&lt;em&gt;nombre_variable&lt;/em&gt;&quot; /&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Los nombres de variables no deben empezar por caracteres numéricos ni incluir espacios ni caracteres especiales.
&lt;/div&gt;

&lt;p&gt;Se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;input type=&quot;text&quot; name=&quot;nombre&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;p&gt;La etiqueta &lt;strong&gt;&amp;lt;label&amp;gt&lt;/strong&gt; se usa para especificar un texto relacionado con el contenido del campo del formulario a rellenar, y usa el atributo &#39;&lt;strong&gt;for&lt;/strong&gt;&#39; con valor igual a el nombre de la variable a la que hace referencia. Se aplica de la siguiente forma:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;label for=&quot;nombre_variable&quot;&amp;gt;Nombre: &amp;lt;/label&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;&lt;strong&gt;nombre_variable&lt;/strong&gt;&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;El código anterior se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;nombre&quot;&gt;Nombre: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;nombre&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;p&gt;Otros atributos para este campo de formulario son:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;El atributo &#39;&lt;strong&gt;value&lt;/strong&gt;&#39; debe tener un texto que se mostrará por defecto en el campo del formulario; el cual será sustituido por el que introduzca el usuario:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&quot;nombre_variable&quot;&amp;gt;Nombre: &amp;lt;/label&amp;gt&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;nombre_variable&quot; &lt;strong&gt;value=&quot;Escriba aquí su nombre&quot;&lt;/strong&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el código se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;nombre&quot;&gt;Nombre: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;nombre&quot; value=&quot;Escriba aquí su nombre&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;El atributo &#39;&lt;strong&gt;maxlength&lt;/strong&gt;&#39; es para especificar la cantidad máxima de caracteres que se pueden introducir en el campo de texto, y se le debe asignar un valor numérico igual al número de caracteres máximo que se podrán introducir:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&quot;nombre_variable&quot;&amp;gt;Nombre: &amp;lt;/label&amp;gt&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;nombre_variable&quot; &lt;strong&gt;maxlength=&quot;3&quot;&lt;/strong&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Con &lt;strong&gt;maxlength=&quot;3&quot;&lt;/strong&gt;, en el cuadro siguiente no se podrán introducir más de tres caracteres:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;nombre&quot;&gt;Nombre: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;nombre&quot; maxlength=&quot;3&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;El atributo &#39;&lt;strong&gt;readonly=&quot;readonly&quot;&lt;/strong&gt;&#39;, es para que campo el campo no se pueda modificar, se queda en modo &quot;&lt;em&gt;solo lectura&lt;/em&gt;:&quot;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&amp;lt;label for=&quot;nombre_variable&quot;&amp;gt;Nombre: &amp;lt;/label&amp;gt&lt;br /&gt;
&amp;lt;input type=&quot;text&quot; name=&quot;nombre_variable&quot; &lt;strong&gt;readonly=&quot;readonly&quot;&lt;/strong&gt; value=&quot;Solo lectura&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el cuadro siguiente no se puede escribir nada:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;nombre&quot;&gt;Nombre: &lt;/label&gt;
&lt;input type=&quot;text&quot; name=&quot;nombre&quot; readonly=&quot;readonly&quot; value=&quot;Solo lectura&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;li&gt;&lt;strong&gt;type=&quot;password&quot;&lt;/strong&gt;: al igual que type=&quot;text&quot;, es para introducir texto en un campo, pero este texto no se mostrará en la pantalla, en lugar de los caracteres introducidos se mostrarán &lt;em&gt;circulos&lt;/em&gt; o &lt;em&gt;asteriscos&lt;/em&gt;:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;label for=&quot;contraseña&quot;&amp;gt;Contraseña: &amp;lt;/label&amp;gt&lt;br /&gt;
&amp;lt;input type=&quot;password&quot; name=&quot;pass&quot;&lt;/strong&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;
&lt;/div&gt;

&lt;p&gt;Y el código se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;form method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&gt;
&lt;label for=&quot;contraseña&quot;&gt;Contraseña: &lt;/label&gt;
&lt;input type=&quot;password&quot; name=&quot;pass&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;cita&quot;&gt;Como es de suponer, también se pueden aplicar &lt;strong&gt;reglas CSS&lt;/strong&gt; para personalizar el estilo en el que se mostrarán nuestros formularios...
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/4134561284537820508/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/campos-simples-de-entrada-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4134561284537820508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4134561284537820508'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/campos-simples-de-entrada-de.html' title='Formularios: Campos &quot;simples&quot; de entrada de formularios. Etiquetas &#39;input&#39;, &#39;label&#39; y atributos &#39;type&#39;, &#39;name&#39;, &#39;value&#39;...'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-1660076280801845528</id><published>2010-08-16T17:57:00.002+02:00</published><updated>2010-08-16T18:08:05.584+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="form"/><category scheme="http://www.blogger.com/atom/ns#" term="formularios"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><title type='text'>Formularios:  etiqueta &#39;form&#39; y atributos &#39;method&#39; y &#39;action&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Los formularios se hacen para poder enviar datos a través de una página web, se usan para realizar registros en páginas web como foros o tiendas online, para encuestas online, etc.&lt;/p&gt;

&lt;p&gt;Para crear un &lt;strong&gt;formulario&lt;/strong&gt; en un documento HTML se usa la etiqueta de apertura &lt;strong&gt;&amp;lt;form&amp;gt;&lt;/strong&gt;, y &lt;strong&gt;&amp;lt;/form&amp;gt;&lt;/strong&gt; para cerrarla. A la etiqueta de apertura se le debe incluir el atributo &#39;&lt;strong&gt;method&lt;/strong&gt;&#39; con dos posibles valores para determinar como se enviaran los datos de un formulario una vez rellenado:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;method=&quot;get&quot;&lt;/strong&gt; enviará los datos del formulario de forma visible en la url.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;method=&quot;post&quot;&lt;/strong&gt; enviará los datos de forma oculta o &lt;em&gt;no visible&lt;/em&gt;. Este método es el más usado, lógicamente, por seguridad.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Otro importante atributo para &lt;strong&gt;&amp;lt;form&amp;gt;&lt;/strong&gt; es &#39;&lt;strong&gt;action&lt;/strong&gt;&#39;, y en su valor, se debe especificar la dirección url que tiene que recibir los datos del formulario una vez rellenado:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&lt;strong&gt;&amp;lt;form&amp;gt; method=&quot;post&quot; action=&quot;http://..../validar.php&quot;&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;...aquí van los campos de entrada de datos del formulario...&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;/form&amp;gt;&lt;/strong&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/1660076280801845528/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-etiqueta-form-y-atributos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1660076280801845528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1660076280801845528'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/formularios-etiqueta-form-y-atributos.html' title='Formularios:  etiqueta &#39;form&#39; y atributos &#39;method&#39; y &#39;action&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-7633804429602034986</id><published>2010-08-15T02:44:00.028+02:00</published><updated>2010-11-11T13:47:24.292+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="listas"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="ul ol li"/><title type='text'>Listas HTML: &#39;ul&#39;, &#39;ol&#39; y &#39;li&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Las &lt;strong&gt;listas&lt;/strong&gt; es otro tipo de contenido típico en los documentos HTML, las hay de dos tipos, &lt;strong&gt;listas ordenadas&lt;/strong&gt; y &lt;strong&gt;listas desordenadas&lt;/strong&gt;, para las primeras se usa a etiqueta HTML &lt;strong&gt;&amp;lt;ol&amp;gt;&lt;/strong&gt;&lt;/p&gt;, mientras que para las desordenadas se emplea &lt;strong&gt;&amp;lt;ul&amp;gt;&lt;/strong&gt;, y por último, para definir &lt;strong&gt;cada uno de los elementos de las listas&lt;/strong&gt; (tanto las ordenadas como las desordenadas) se usa el atributo &lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Listas ordendas:&lt;/strong&gt;

&lt;div class=&quot;codigo&quot;&gt;
&lt;strong&gt;&amp;lt;ol&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;Elemento 1&lt;strong&gt;&amp;lt;/li&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;Elemento 2&lt;strong&gt;&amp;lt;/li&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;Elemento 3&lt;strong&gt;&amp;lt;/li&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;/ol&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;El código anterior genera la siguiente lista:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
 &lt;ol&gt;
 &lt;li&gt;Elemento 1&lt;/li&gt;
 &lt;li&gt;Elemento 2&lt;/li&gt;
 &lt;li&gt;Elemento 3&lt;/li&gt;
 &lt;/ol&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Listas desordenadas:&lt;/strong&gt;

&lt;div class=&quot;codigo&quot;&gt;
&lt;strong&gt;&amp;lt;ul&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;Elemento 1&lt;strong&gt;&amp;lt;/li&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;Elemento 2&lt;strong&gt;&amp;lt;/li&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;Elemento 3&lt;strong&gt;&amp;lt;/li&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;/ul&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;El código anterior genera la siguiente lista:&lt;/p&gt;

&lt;div class=&quot;ejemplo no-estilo&quot;&gt;
 &lt;ul&gt;
 &lt;li&gt;Elemento 1&lt;/li&gt;
 &lt;li&gt;Elemento 2&lt;/li&gt;
 &lt;li&gt;Elemento 3&lt;/li&gt;
 &lt;/ul&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;h2&gt;Reglas CSS para listas&lt;/h2&gt;

&lt;p&gt;En nuestra &lt;a href=&quot;http://www.box.net/shared/cv2nqhzahp&quot;&gt;Guía de referencia rápida CSS&lt;/a&gt; podemos encontrar varias &lt;em&gt;propiedades&lt;/em&gt; para usar con las listas, a continuación, algunos ejemplos con la propiedad &lt;strong&gt;list-style-type&lt;/strong&gt; y probando diferentes valores:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;Primero algunos atributos para listas desordenadas:

&lt;div class=&quot;cita&quot;&gt;&lt;strong&gt;Parece que &lt;span class=&quot;rojo&quot;&gt;la plantilla CSS de este Blog tiene otras reglas para las listas &lt;em&gt;ul&lt;/em&gt; y las modificaciones de estilo CSS quí no se ven reflejadas&lt;/span&gt;&lt;/strong&gt;, pero el código ha sido probado en otros entornos y se visualiza correctamente.&lt;/div&gt;

&lt;p&gt;En el archivo de estilo CSS: podemos crear una clase para las listas que queramos que se muestren con un estilo elegido por nosostros:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
ul {&lt;br /&gt;
  &lt;strong&gt;list-style-type: square;&lt;/strong&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;En el documento HTML:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 1&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 2&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 3&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;Y el código anterior se visualizará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo lista-square&quot;&gt;
&lt;p class=&quot;rojo&quot;&gt;Debería mostrarse un cuadrado pequeño en cada elemento de la lista&lt;/p&gt;

 &lt;ul&gt;
  &lt;li&gt;Elemento 1&lt;/li&gt;
  &lt;li&gt;Elemento 2&lt;/li&gt;
  &lt;li&gt;Elemento 3&lt;/li&gt;
 &lt;/ul&gt;
&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Otros valores para la propiedad &lt;strong&gt;list-style-type&lt;/strong&gt; en las listas desordenadas pueden ser: &lt;strong&gt;circle&lt;/strong&gt;, &lt;strong&gt;disc&lt;/strong&gt; (este último es el que se muestra por defecto), etc...&lt;/div&gt;

&lt;p&gt;Si queremos que todas las listas desordenadas de nuestra web su muestren del mismo tipo, en lugar de crear una regla CSS con un &lt;strong&gt;selector&lt;/strong&gt; definido por nosotros, deberemos unas la etiqueta HTML &lt;strong&gt;ul&lt;/strong&gt; como selector en el fichero CSS:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&lt;strong&gt;ul&lt;/strong&gt; {&lt;br /&gt;
  list-style-type: square;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;Y el documento HTML, al abrir la etiqueta de la lista, no es necesario especificar ninguna clase, ya que todas las listas desordenadas del documento se mostrarán con el mismo valor:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;&lt;strong&gt;ul&lt;/strong&gt;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 1&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 2&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 3&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/li&gt;


&lt;li&gt;Para usar la propiedad &lt;strong&gt;list-style-image&lt;/strong&gt;, en el valor &lt;strong&gt;url&lt;/strong&gt;, hay que indicarle la dirección url de una imagen (pequeña):

&lt;p&gt;En el archivo de estilo CSS:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
.lista_imagen {&lt;br /&gt;
  &lt;strong&gt;list-style-image: url(http://www.sm.com.gt/sm/p/templates/yoo_pinboard/images/emailButton.png);&lt;/strong&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;En el documento HTML:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;ul &lt;strong&gt;class=&quot;lista_imagen&quot;&lt;/strong&gt;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 1&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 2&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 3&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;/div&gt;

&lt;li&gt;Y para las listas ordenadas:

&lt;p&gt;Aplicando la propiedad &lt;strong&gt;list-style-type&lt;/strong&gt; con el valor &lt;strong&gt;lower-roman&lt;/strong&gt; en el archivo CSS:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
.lista_lower-roman ol{&lt;br /&gt;
  &lt;strong&gt;list-style-type: lower-roman;&lt;/strong&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;En el documento HTML:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;ol &lt;strong&gt;class=&quot;lista_lower-roman&quot;&lt;/strong&gt;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 1&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 2&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Elemento 3&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;Y el código anterior se visualizará con cada elemento de la lista en números romanos con las letras en minúscula: &lt;/p&gt;

&lt;div class=&quot;ejemplo clase-lower-roman&quot;&gt;
 &lt;ol&gt;
  &lt;li&gt;Elemento 1&lt;/li&gt;
  &lt;li&gt;Elemento 2&lt;/li&gt;
  &lt;li&gt;Elemento 3&lt;/li&gt;
 &lt;/ol&gt;
&lt;/div&gt;

&lt;/li&gt;

&lt;/ul&gt;

&lt;div class=&quot;cita&quot;&gt;No es correcto modificar estilos de listas ordenadas con atributos de listas desordenadas ni modificar estilos de listas desordenas con atrubutos de listas ordenadas&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/7633804429602034986/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/listas-html-ul-ol-y-li.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7633804429602034986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7633804429602034986'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/listas-html-ul-ol-y-li.html' title='Listas HTML: &#39;ul&#39;, &#39;ol&#39; y &#39;li&#39;'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-4956620249868637877</id><published>2010-08-14T23:45:00.010+02:00</published><updated>2010-09-15T12:05:07.523+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cabecera y pie de tablas"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><category scheme="http://www.blogger.com/atom/ns#" term="tbody"/><category scheme="http://www.blogger.com/atom/ns#" term="tfoot"/><category scheme="http://www.blogger.com/atom/ns#" term="thead"/><title type='text'>Tablas HTML: Cabeceras y Pié de tablas, &#39;thead&#39;, &#39;tbody&#39; y &#39;tfoot&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;A veces, cuando las tablas son muy largas, es conveniente ponerles &lt;strong&gt;cabeceras&lt;/strong&gt; (&lt;strong&gt;&amp;lt;thead&amp;gt;&lt;/strong&gt;) tanto al principio como al final, estás ultimas, &lt;strong&gt;pié&lt;/strong&gt; (&lt;strong&gt;&amp;lt;tfoot&amp;gt;&lt;/strong&gt;) de tabla. Cuando a una tabla se le pone cabecera y/o pié de tabla, el resto de las celdas de datos de la tabla deben definirse como &lt;strong&gt;cuerpo&lt;/strong&gt; (&lt;strong&gt;&amp;lt;tbody&amp;gt;&lt;/strong&gt;) de la tabla:&lt;/p&gt;

&lt;p&gt;Estos nuevos &lt;em&gt;elementos&lt;/em&gt; se definen de la siguiente manera:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;La &lt;strong&gt;cabecera de una tabla&lt;/strong&gt; se sitúa justo después de la etiqueta de apertura de la tabla (&lt;strong&gt;&amp;lt;table&amp;gt;&lt;/strong&gt;) o, si se da el caso, justo después de la etiqueta de cierre de &lt;strong&gt;&amp;lt;/caption&amp;gt;&lt;/strong&gt;:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;thead&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;tr&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; contenido de cabecera 1 &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; contenido de cabecera 2 &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt;&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;strong&gt;&amp;lt;/thead&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;tbody&amp;gt;&lt;/strong&gt;&lt;br /&gt;
... resto de celdas contenido de la tabla ...&lt;br /&gt;
&lt;strong&gt;&amp;lt;/tbody&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;El &lt;strong&gt;pié de una tabla&lt;/strong&gt; se sitúa justo después de la etiqueta de apertura de la tabla (&lt;strong&gt;&amp;lt;table&amp;gt;&lt;/strong&gt;) o, si se da el caso, justo después de la etiqueta de cierre de &lt;strong&gt;&amp;lt;/caption&amp;gt;&lt;/strong&gt;, o también, justo después de la etiqueta de cierre de cabecera (&lt;strong&gt;&amp;lt;/thead&amp;gt;&lt;/strong&gt;):

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;thead&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;tr&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; contenido de cabecera 1 &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; contenido de cabecera 2 &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt;&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;strong&gt;&amp;lt;/thead&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;tfoot&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;tr&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; contenido de cabecera 1 &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; contenido de cabecera 2 &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt;&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;strong&gt;&amp;lt;/tfoot&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&amp;lt;tbody&amp;gt;&lt;/strong&gt;&lt;br /&gt;
... resto de celdas contenido de la tabla ...&lt;br /&gt;
&lt;strong&gt;&amp;lt;/tbody&amp;gt;&lt;/strong&gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;cita&quot;&gt;
Una tabla puede tener más de un &lt;strong&gt;cuerpo&lt;/strong&gt; &lt;strong&gt;&amp;lt;/tbody&amp;gt;&lt;/strong&gt;, en el momento de visualizar la tabla con un navegador web no implicará nada, pero si a nivel de &lt;strong&gt;accesibilidad&lt;/strong&gt;. Por otro lado, solo podemos tener una &lt;strong&gt;cabecera&lt;/strong&gt; (&lt;strong&gt;&amp;lt;/thead&amp;gt;&lt;/strong&gt;) y un &lt;strong&gt;pié&lt;/strong&gt; (&lt;strong&gt;&amp;lt;/tfoot&amp;gt;&lt;/strong&gt;) por tabla.&lt;/div&gt;

&lt;p&gt;La definición de cada elemento dentro de la tabla debe ir en el ordén:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cabecera &lt;strong&gt;&amp;lt;/thead&amp;gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Pié &lt;strong&gt;&amp;lt;/tfoot&amp;gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Cuerpo &lt;strong&gt;&amp;lt;/tbody&amp;gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Después la tabla se visualizará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
 &lt;table class=&quot;tabla&quot; summary=&quot;Tabla con cabecera, cuerpo y pié&quot;&gt;
 &lt;caption&gt;Tabla con cabecera, cuerpo y pié&lt;/caption&gt;
 
 &lt;thead&gt;
  &lt;tr&gt;&lt;th rowspan=&quot;2&quot; scope=&quot;col&quot;&gt;rowspan=&quot;2&quot;&lt;/th&gt;
  &lt;th colspan=&quot;4&quot; scope=&quot;col&quot;&gt;Fila de cabecera con colspan=&quot;4&quot;&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th scope=&quot;col&quot;&gt;Cabecera 1&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;Cabecera 2&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;Cabecera 3&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;Cabecera 4&lt;/th&gt;&lt;/tr&gt;
 &lt;/thead&gt;
 
 &lt;tfoot&gt;
  &lt;tr&gt;&lt;th rowspan=&quot;2&quot; scope=&quot;col&quot;&gt;rowspan=&quot;2&quot;&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;Pié 1&lt;/th&gt;
  &lt;th scope=&quot;col&quot;&gt;Pié 2&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;Pié 3&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;Pié 4&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th colspan=&quot;4&quot;&gt;Fila de pié con colspan=&quot;4&quot;&lt;/th&gt;&lt;/tr&gt; 
 &lt;/tfoot&gt;

 &lt;tbody&gt;
  &lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;1,1&lt;/th&gt;&lt;td&gt;1,2&lt;/td&gt;&lt;td&gt;1,3&lt;/td&gt;&lt;td&gt;1,4&lt;/td&gt;&lt;td&gt;1,5&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;2,1&lt;/th&gt;&lt;td&gt;2,2&lt;/td&gt;&lt;td&gt;2,3&lt;/td&gt;&lt;td&gt;2,4&lt;/td&gt;&lt;td&gt;2,5&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;3,1&lt;/th&gt;&lt;td&gt;3,2&lt;/td&gt;&lt;td&gt;3,3&lt;/td&gt;&lt;td&gt;3,4&lt;/td&gt;&lt;td&gt;3,5&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;4,1&lt;/th&gt;&lt;td&gt;4,2&lt;/td&gt;&lt;td&gt;4,3&lt;/td&gt;&lt;td&gt;4,4&lt;/td&gt;&lt;td&gt;4,5&lt;/td&gt;&lt;/tr&gt;
 &lt;/tbody&gt;
  
 &lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;En este último ejemplo se han empleado dos filas tanto para la cabecera como para el pié, la primera celda de ambas tienen fusionadas las filas con &lt;strong&gt;rowspan=&quot;2&quot;&lt;/strong&gt;. La fila superior de la cabecera tiene las últimas cuatro celdas fusionadas con un &lt;strong&gt;colspan=&quot;4&quot;&lt;/strong&gt;, al igual que la fila inferior del pié de la tabla. Y hasta aquí todo lo que hay sobre las tablas HTML.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/4956620249868637877/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/tablas-html-cabeceras-y-pie-de-tablas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4956620249868637877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4956620249868637877'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/tablas-html-cabeceras-y-pie-de-tablas.html' title='Tablas HTML: Cabeceras y Pié de tablas, &#39;thead&#39;, &#39;tbody&#39; y &#39;tfoot&#39;'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-2500022897975218298</id><published>2010-08-13T17:22:00.016+02:00</published><updated>2010-08-16T12:20:43.644+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="colspan"/><category scheme="http://www.blogger.com/atom/ns#" term="fusión de celdas"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="rowspan"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><title type='text'>Tablas HTML: fusión de celdas con atributos &#39;colspan&#39; y &#39;rowspan&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;A veces necesitamos fusionar celdas de una tabla para representar determinados datos, para ello se emplean los siguientes &lt;strong&gt;atributos&lt;/strong&gt; dentro de las &lt;em&gt;etiquetas&lt;/em&gt; &lt;strong&gt;td&lt;/strong&gt; (o &lt;strong&gt;th&lt;/strong&gt; si se da el caso):&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;colspan&lt;/strong&gt; es para fusionar celdas de una misma fila, o sea, fusiona columnas, a &lt;strong&gt;colspan&lt;/strong&gt; se le pueden asignar valores &lt;strong&gt;=&quot;2&quot;&lt;/strong&gt;, &lt;strong&gt;=&quot;3&quot;&lt;/strong&gt;, &lt;strong&gt;=&quot;4&quot;&lt;/strong&gt;... dependiendo del número de celdas que queramos fusionar:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;table class=&quot;tabla_bordes&quot; summary=&quot;fusión de celdas: uso de &#39;colspan&#39;&quot;&amp;gt;&lt;br /&gt;

&amp;lt;caption&amp;gt;fusión de celdas: uso de &#39;colspan&#39;&amp;lt;/caption&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 1,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 2,1 &amp;lt;/td&amp;gt; &lt;strong&gt;&amp;lt;td colspan=&quot;2&quot;&amp;gt; celda 2,2 y 2,3 fusionadas &amp;lt;/td&amp;gt;&lt;/strong&gt; &amp;lt;td&amp;gt; celda 2,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 3,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;/table&amp;gt;&lt;/div&gt;

&lt;p&gt;El código anterior genera una tabla que fusiona las celdas &lt;strong&gt;2,2 y 2,3&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table class=&quot;tabla_bordes&quot; summary=&quot;fusión de celdas: uso de &#39;colspan&#39;&quot;&gt;

&lt;caption&gt;fusión de celdas: uso de &#39;colspan&#39;&lt;/caption&gt;

&lt;tr&gt; &lt;td&gt; celda 1,1 &lt;/td&gt; &lt;td&gt; celda 1,2 &lt;/td&gt; &lt;td&gt; celda 1,3 &lt;/td&gt; &lt;td&gt; celda 1,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; celda 2,1 &lt;/td&gt; &lt;td colspan=&quot;2&quot;&gt; &lt;strong&gt;celda 2,2 y 2,3 fusionadas&lt;/strong&gt; &lt;/td&gt; &lt;td&gt; celda 2,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; celda 3,1 &lt;/td&gt; &lt;td&gt; celda 3,2 &lt;/td&gt; &lt;td&gt; celda 3,3 &lt;/td&gt; &lt;td&gt; celda 3,4 &lt;/td&gt; &lt;/tr&gt;

&lt;/table&gt;&lt;/div&gt;

&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;rowspan&lt;/strong&gt; es para fusionar celdas de las filas de una misma columna, e igual que antes a &lt;strong&gt;colspan&lt;/strong&gt; se le asignan valores &lt;strong&gt;=&quot;2&quot;&lt;/strong&gt;, &lt;strong&gt;=&quot;3&quot;&lt;/strong&gt;, &lt;strong&gt;=&quot;4&quot;&lt;/strong&gt;... dependiendo del número de celdas que queramos fusionar:

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;table class=&quot;tabla_bordes&quot; summary=&quot;fusión de celdas: uso de &#39;rowspan&#39;&quot;&amp;gt;&lt;br /&gt;

&amp;lt;caption&amp;gt;fusión de celdas: uso de &#39;rowspan&#39;&amp;lt;/caption&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 1,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 2,1 &amp;lt;/td&amp;gt; &lt;strong&gt;&amp;lt;td colspan=&quot;2&quot;&amp;gt; celda 2,2 y 3,2 fusionadas &amp;lt;/td&amp;gt;&lt;/strong&gt; &amp;lt;td&amp;gt; celda 2,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 2,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 3,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;/table&amp;gt;&lt;/div&gt;

&lt;p&gt;El código anterior genera una tabla que fusiona las celdas &lt;strong&gt;2,2 y 3,2&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table class=&quot;tabla_bordes&quot; summary=&quot;fusión de celdas: uso de &#39;rowspan&#39;&quot;&gt;

&lt;caption&gt;fusión de celdas: uso de &#39;rowspan&#39;&lt;/caption&gt;

&lt;tr&gt; &lt;td&gt; celda 1,1 &lt;/td&gt; &lt;td&gt; celda 1,2 &lt;/td&gt; &lt;td&gt; celda 1,3 &lt;/td&gt; &lt;td&gt; celda 1,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; celda 2,1 &lt;/td&gt; &lt;td rowspan=&quot;2&quot;&gt; &lt;strong&gt;celda 2,2 y 3,2 fusionadas&lt;/strong&gt; &lt;/td&gt; &lt;td&gt; celda 2,3 &lt;/td&gt; &lt;td&gt; celda 2,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; celda 3,1 &lt;/td&gt; &lt;td&gt; celda 3,3 &lt;/td&gt; &lt;td&gt; celda 3,4 &lt;/td&gt; &lt;/tr&gt;

&lt;/table&gt;&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;En el código de este último ejemplo, al definir las celdas de la tercera fila nos saltamos la celda &lt;strong&gt;3,2&lt;/strong&gt;, que está &lt;em&gt;fusionada&lt;/em&gt; con la celda &lt;strong&gt;2,2&lt;/strong&gt; de la segunda fila, y pasamos de la celda &lt;strong&gt;3,1&lt;/strong&gt; a la celda &lt;strong&gt;3,3&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ahora vamos a fusionar cuatro celdas, dos de la segunda fila con otras dos de la tercera:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;table class=&quot;tabla_bordes&quot; summary=&quot;fusión de celdas: uso de &#39;colspan&#39; y &#39;rowspan&#39;&quot;&amp;gt;&lt;br /&gt;

&amp;lt;caption&amp;gt;fusión de celdas: uso de &#39;colspan&#39; y &#39;rowspan&#39;&amp;lt;/caption&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 1,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 2,1 &amp;lt;/td&amp;gt; &lt;strong&gt;&amp;lt;td rowspan=&quot;2&quot; colspan=&quot;2&quot;&amp;gt; celdas 2,2, 2,3, 3,2 y 3,3 fusionadas &amp;lt;/td&amp;gt;&lt;/strong&gt; &amp;lt;td&amp;gt; celda 2,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 3,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; &amp;lt;td&amp;gt; celda 3,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;/table&amp;gt;&lt;/div&gt;

&lt;p&gt;El código anterior genera una tabla que fusiona las celdas &lt;strong&gt;2,2 y 3,2&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table class=&quot;tabla_bordes&quot; summary=&quot;fusión de celdas: uso de &#39;colspan&#39; y &#39;rowspan&#39;&quot;&gt;

&lt;caption&gt;fusión de celdas: uso de &#39;colspan&#39; y &#39;rowspan&#39;&lt;/caption&gt;

&lt;tr&gt; &lt;td&gt; celda 1,1 &lt;/td&gt; &lt;td&gt; celda 1,2 &lt;/td&gt; &lt;td&gt; celda 1,3 &lt;/td&gt; &lt;td&gt; celda 1,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; celda 2,1 &lt;/td&gt; &lt;td rowspan=&quot;2&quot; colspan=&quot;2&quot;&gt; &lt;strong&gt;celdas 2,2, 2,3, 3,2 y 3,3 fusionadas&lt;/strong&gt; &lt;/td&gt; &lt;td&gt; celda 2,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;td&gt; celda 3,1 &lt;/td&gt; &lt;td&gt; celda 3,4 &lt;/td&gt; &lt;/tr&gt;

&lt;/table&gt;&lt;/div&gt;

&lt;hr /&gt;

&lt;p&gt;Otros ejemplos de &lt;strong&gt;fusión de celdas&lt;/strong&gt;:
&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table summary=&quot;Ejemplos de fusión de celdas&quot;&gt;
&lt;caption&gt;Ejemplos de fusión de celdas&lt;/caption&gt;
&lt;tr&gt;
&lt;td&gt;
 &lt;table class=&quot;tabla_bordes&quot; summary=&quot;Fusión de filas&quot;&gt;
 &lt;caption&gt;Fusión de filas&lt;/caption&gt;
 &lt;tr&gt;&lt;td&gt;A&lt;/td&gt;&lt;td rowspan=&quot;2&quot;&gt;B&lt;/td&gt;&lt;/tr&gt; 
 &lt;tr&gt;&lt;td&gt;C&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/table&gt;
&lt;/td&gt;

&lt;td&gt;
 &lt;table class=&quot;tabla_bordes&quot; summary=&quot;Fusión de filas&quot;&gt;
 &lt;caption&gt;Fusión de filas&lt;/caption&gt;
 &lt;tr&gt;&lt;td&gt;A&lt;/td&gt;&lt;td&gt;B&lt;/td&gt;&lt;td rowspan=&quot;3&quot;&gt;C&lt;/td&gt;&lt;td&gt;D&lt;/td&gt;&lt;/tr&gt; 
 &lt;tr&gt;&lt;td rowspan=&quot;2&quot;&gt;E&lt;/td&gt;&lt;td&gt;F&lt;/td&gt;&lt;td rowspan=&quot;3&quot;&gt;G&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;H&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;I&lt;/td&gt;&lt;td&gt;J&lt;/td&gt;&lt;td&gt;K&lt;/td&gt;&lt;/tr&gt;
 &lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
 &lt;table class=&quot;tabla_bordes&quot; sumary=&quot;Fusión de columnas&quot;&gt;
 &lt;caption&gt;Fusión de columnas&lt;/caption&gt;
 &lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;A&lt;/td&gt;&lt;/tr&gt; 
 &lt;tr&gt;&lt;td&gt;B&lt;/td&gt;
 &lt;td&gt;C&lt;/td&gt;&lt;/tr&gt;
 &lt;/table&gt;
&lt;/td&gt;

&lt;td&gt;
 &lt;table class=&quot;tabla_bordes&quot; sumary=&quot;Fusión de columnas&quot;&gt;
 &lt;caption&gt;Fusión de columnas&lt;/caption&gt;
 &lt;tr&gt;&lt;td colspan=&quot;3&quot;&gt;A&lt;/td&gt;&lt;td&gt;B&lt;/td&gt;&lt;/tr&gt; 
 &lt;tr&gt;&lt;td&gt;C&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;D&lt;/td&gt;&lt;td&gt;E&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td colspan=&quot;4&quot;&gt;F&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;G&lt;/td&gt;&lt;td&gt;H&lt;/td&gt;&lt;td&gt;I&lt;/td&gt;&lt;td&gt;J&lt;/td&gt;&lt;/tr&gt;
 &lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/2500022897975218298/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/tablas-html-fusion-de-celdas-con.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/2500022897975218298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/2500022897975218298'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/08/tablas-html-fusion-de-celdas-con.html' title='Tablas HTML: fusión de celdas con atributos &#39;colspan&#39; y &#39;rowspan&#39;'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-4509571727418713400</id><published>2010-07-12T16:43:00.027+02:00</published><updated>2010-09-15T11:45:51.340+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="caption"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><category scheme="http://www.blogger.com/atom/ns#" term="table"/><category scheme="http://www.blogger.com/atom/ns#" term="td"/><category scheme="http://www.blogger.com/atom/ns#" term="th"/><category scheme="http://www.blogger.com/atom/ns#" term="tr"/><title type='text'>Tablas HTML, &#39;table&#39;, &#39;tr&#39; y &#39;td&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Una tabla es un conjunto de filas y columnas para representar datos, que pueden ser de cualquier tipo: &lt;em&gt;texto, imágenes, listas, otras tablas, etc&lt;/em&gt;. La forma de crear una tabla en un documento HTML:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&amp;lt;table&amp;gt;&lt;/strong&gt; y &lt;strong&gt;&amp;lt;/table&amp;gt;&lt;/strong&gt; son las etiquetas de &lt;em&gt;apertura&lt;/em&gt; y &lt;em&gt;cierre&lt;/em&gt; de la &lt;em&gt;tabla&lt;/em&gt;.

&lt;div class=&quot;cita&quot;&gt;Un &lt;strong&gt;atributo muy interesante&lt;/strong&gt; para &lt;strong&gt;&amp;lt;table&amp;gt;&lt;/strong&gt; es &quot;&lt;strong&gt;summary&lt;/strong&gt;&quot;, se usa para introducir una descripción del contenido de la tabla:

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;table &lt;strong&gt;summary=&quot;descripción de lo que representa el contenido de la tabla&quot;&lt;/strong&gt;&amp;gt;&lt;br /&gt;
&lt;em&gt;...aquí irán las filas y columnas con los datos de la tabla...&lt;/em&gt;&lt;br /&gt;  &amp;lt;/table&amp;gt;&lt;/div&gt;

El atributo &lt;strong&gt;summary&lt;/strong&gt; no será mostrado por el navegador web, pero se debe incluir &lt;strong&gt;siempre&lt;/strong&gt; por motivos de &lt;em&gt;accesibilidad&lt;/em&gt; y &lt;em&gt;posicionamiento&lt;/em&gt; para algunos buscadores.&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;&amp;lt;tr&amp;gt;&lt;/strong&gt; y &lt;strong&gt;&amp;lt;/tr&amp;gt;&lt;/strong&gt; definen cada una de las filas de la tabla (&lt;strong&gt;tr&lt;/strong&gt; viene de &lt;em&gt;table row&lt;/em&gt;).&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;&amp;lt;td&amp;gt;&lt;/strong&gt; y &lt;strong&gt;&amp;lt;/td&amp;gt;&lt;/strong&gt; contendrán entre ellas el contenido (o datos) de cada una de las celdas de la tabla, ordenadas dentro de cada fila &lt;strong&gt;&amp;lt;tr&amp;gt;&lt;/strong&gt; ... ... &lt;strong&gt;&amp;lt;/tr&amp;gt;&lt;/strong&gt; (&lt;strong&gt;td&lt;/strong&gt; viene de &lt;em&gt;table data&lt;/em&gt;).&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; y &lt;strong&gt;&amp;lt;/th&amp;gt;&lt;/strong&gt; es para definir &quot;&lt;em&gt;cabeceras&lt;/em&gt;&quot; de columnas o filas de dentro de la tabla (&lt;strong&gt;th&lt;/strong&gt; viene de &lt;em&gt;table head&lt;/em&gt;). Estas etiquetas sustituirán a las &lt;em&gt;celdas de datos&lt;/em&gt; &lt;strong&gt;&amp;lt;td&amp;gt;&lt;/strong&gt; en el lugar en que las queramos posicionar, por lo tanto también van dentro de las filas de la tabla en su lugar correspondiente.

&lt;div class=&quot;cita&quot;&gt;La etiqueta &lt;strong&gt;&amp;lt;th&amp;gt;&lt;/strong&gt; debe tener el atributo &lt;strong&gt;scope&lt;/strong&gt; para indicar si esta celda &quot;cabecera&quot; define el contenido de una &lt;em&gt;columna&lt;/em&gt; o de una &lt;em&gt;fila&lt;/em&gt; con los valores &lt;strong&gt;=&quot;col&quot;&lt;/strong&gt; o &lt;strong&gt;=&quot;row&quot;&lt;/strong&gt; respectivamente:

 &lt;div class=&quot;codigo&quot;&gt;&lt;ul&gt;
 &lt;li&gt;&lt;strong&gt;&amp;lt;th scope=&quot;col&quot;&amp;gt;&lt;/strong&gt;... &lt;em&gt;identifica a una &quot;columna&lt;/em&gt;&quot;&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;&amp;lt;th scope=&quot;row&quot;&amp;gt;&lt;/strong&gt;... &lt;em&gt; identifica a una &quot;fila&lt;/em&gt;&quot;&lt;/li&gt;
 &lt;/ul&gt;&lt;/div&gt;

El valor de &lt;strong&gt;scope&lt;/strong&gt; no será mostrado por el navegador web, pero como antes, es muy conveniente incluirlo siempre por motivos de &lt;em&gt;accesibilidad&lt;/em&gt; y &lt;em&gt;posicionamiento&lt;/em&gt;.&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;&amp;lt;caption&amp;gt;&lt;/strong&gt; &lt;em&gt;descripción de la tabla&lt;/em&gt; &lt;strong&gt;&amp;lt;/caption&amp;gt;&lt;/strong&gt; es para indicar una descripción del contenido de la tabla, y está sí será mostrada por el navegador web, va justo después de la etiqueta &lt;strong&gt;&amp;lt;table&amp;gt;&lt;/strong&gt;:

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;table summary=&quot;descripción de la tabla&quot;&amp;gt;&lt;br /&gt;

&lt;strong&gt;&amp;lt;caption&amp;gt;&lt;em&gt;descripción de la tabla&lt;/em&gt;&amp;lt;/caption&amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; celda 1,1 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 1,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;th scope=&quot;row&quot;&amp;gt; cabecera 2,1 &amp;lt;/th&amp;gt; &amp;lt;td&amp;gt; celda 2,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 2,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 2,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;tr&amp;gt; &amp;lt;th scope=&quot;row&quot;&amp;gt; cabecera 3,1 &amp;lt;/th&amp;gt; &amp;lt;td&amp;gt; celda 3,2 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,3 &amp;lt;/td&amp;gt; &amp;lt;td&amp;gt; celda 3,4 &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;&lt;br /&gt;

&amp;lt;/table&amp;gt;&lt;/div&gt;

&lt;p&gt;El código anterior mostrará la siguiente tabla:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table caption=&quot;descripción de la tabla&quot;&gt;
&lt;caption&gt;descripción de la tabla&lt;/caption&gt;
&lt;tr&gt; &lt;td&gt; celda 1,1 &lt;/td&gt; &lt;td&gt; celda 1,2 &lt;/td&gt; &lt;td&gt; celda 1,3 &lt;/td&gt; &lt;td&gt; celda 1,4 &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;th scope=&quot;row&quot;&gt; cabecera 2,1 &lt;/th&gt; &lt;td&gt; celda 2,2 &lt;/td&gt; &lt;td&gt; celda 2,3 &lt;/td&gt; &lt;td&gt; celda 2,4 &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;th scope=&quot;row&quot;&gt; cabecera 3,1 &lt;/th&gt; &lt;td&gt; celda 3,2 &lt;/td&gt; &lt;td&gt; celda 3,3 &lt;/td&gt; &lt;td&gt; celda 3,4 &lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;El contenido de la etiqueta &lt;strong&gt;&amp;lt;caption&amp;gt;&lt;/strong&gt; se muestra con ese fondo amarillento por que tenemos una regla &lt;strong&gt;CSS&lt;/strong&gt; definida para esta etiqueta:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
caption{&lt;br /&gt;
  background-color: #F3F38E;&lt;br /&gt;
}
&lt;/div&gt;

&lt;p&gt;El resto del contenido de la tabla se muestra tal y como lo muestra por defecto el navegador que estés utilizando, pues no todos los navegadores web muestran las tablas html del mismo modo:&lt;/p&gt;

&lt;div class=&quot;cita&quot;&gt;Resulta muy interesante crear &lt;em&gt;reglas de estilo&lt;/em&gt; &lt;strong&gt;CSS&lt;/strong&gt; para cada uno de los elementos de nuestras &lt;em&gt;tablas&lt;/em&gt;, y evitar así sorpresas inesperadas... &lt;em&gt;bordes de celdas, espacio entre celdas, fuente de texto, tamaño de texto, color de texto, estilo, colores de fondo, etc.&lt;/em&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;
&lt;h2&gt;Ejemplos de reglas o clases CSS para tablas&lt;/h2&gt;

&lt;p&gt;Además de la regla para &lt;strong&gt;&amp;lt;caption&amp;gt;&lt;/strong&gt; mostrada antes, hay definida en este blog una clase de estilo &lt;strong&gt;CSS&lt;/strong&gt; con el nombre &quot;&lt;strong&gt;.tabla&lt;/strong&gt;&quot; (para algunas tablas del blos) con estas reglas:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
/* fondo de la etiqueta &quot;CAPTION&quot; */&lt;br /&gt;
caption{&lt;br /&gt;
  background-color: #F3F38E;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* margen interno para todas las celdas TD de tablas */&lt;br /&gt;
td{&lt;br /&gt;
  padding: 4px;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* celdas TD de la clase &quot;.tabla&quot;: color fondo, color texto */&lt;br /&gt;
.tabla td{&lt;br /&gt;
  background-color: orange;&lt;br /&gt;
  color: black;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* celdas TH de la clase &quot;.tabla&quot;: color fondo, color texto */&lt;br /&gt;
.tabla th{&lt;br /&gt;
  background-color: blue;&lt;br /&gt;
  color: white;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;Para aplicar estas reglas de estilo a una tabla, se debe especificar en la etiqueta &lt;strong&gt;&amp;lt;table&amp;gt;&lt;/strong&gt; así:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;table &lt;strong&gt;class=&quot;tabla&quot;&lt;/strong&gt; summary=&quot;descripción de la tabla&quot; ... &amp;gt;
&lt;/div&gt;

&lt;p&gt;Y la tabla del ejemplo anterior se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table class=&quot;tabla&quot; caption=&quot;descripción de la tabla&quot;&gt;

&lt;caption&gt;descripción de la tabla&lt;/caption&gt;

&lt;tr&gt; &lt;td&gt; celda 1,1 &lt;/td&gt; &lt;td&gt; celda 1,2 &lt;/td&gt; &lt;td&gt; celda 1,3 &lt;/td&gt; &lt;td&gt; celda 1,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;th scope=&quot;row&quot;&gt; cabecera 2,1 &lt;/th&gt; &lt;td&gt; celda 2,2 &lt;/td&gt; &lt;td&gt; celda 2,3 &lt;/td&gt; &lt;td&gt; celda 2,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;th scope=&quot;row&quot;&gt; cabecera 3,1 &lt;/th&gt; &lt;td&gt; celda 3,2 &lt;/td&gt; &lt;td&gt; celda 3,3 &lt;/td&gt; &lt;td&gt; celda 3,4 &lt;/td&gt; &lt;/tr&gt;

&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Otro ejemplo tabla con bordes, primero el código CSS, cuyas &lt;em&gt;reglas&lt;/em&gt; se aplicarán también a las etiquetas &lt;strong&gt;td&lt;/strong&gt; que estén dentro de nuestra clase &lt;strong&gt;tabla_bordes&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
.tabla_bordes td {&lt;br /&gt;
  border-spacing: 15px;&lt;br /&gt;
  border-width: 3px;&lt;br /&gt;
  border-style: solid;&lt;br /&gt;
  border-color: #99CCCC;&lt;br /&gt;
  border-collapse: collapse; /* une borde celdas con el borde de tabla */&lt;br /&gt;
  padding: 10px;&lt;br /&gt;
  text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;

&lt;p&gt;Y la tabla de nuestro ejemplo anterior se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;
&lt;table class=&quot;tabla_bordes&quot; caption=&quot;descripción de la tabla&quot;&gt;

&lt;caption&gt;descripción de la tabla&lt;/caption&gt;

&lt;tr&gt; &lt;td&gt; celda 1,1 &lt;/td&gt; &lt;td&gt; celda 1,2 &lt;/td&gt; &lt;td&gt; celda 1,3 &lt;/td&gt; &lt;td&gt; celda 1,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;th scope=&quot;row&quot;&gt; cabecera 2,1 &lt;/th&gt; &lt;td&gt; celda 2,2 &lt;/td&gt; &lt;td&gt; celda 2,3 &lt;/td&gt; &lt;td&gt; celda 2,4 &lt;/td&gt; &lt;/tr&gt;

&lt;tr&gt; &lt;th scope=&quot;row&quot;&gt; cabecera 3,1 &lt;/th&gt; &lt;td&gt; celda 3,2 &lt;/td&gt; &lt;td&gt; celda 3,3 &lt;/td&gt; &lt;td&gt; celda 3,4 &lt;/td&gt; &lt;/tr&gt;

&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Como a la etiqueta de &lt;em&gt;cabecera&lt;/em&gt; &lt;strong&gt;th&lt;/strong&gt; no se le aplica ninguna regla, las celdas &lt;em&gt;cabecera&lt;/em&gt; de la tabla se visualizan según las muestra el navegador web que estemos usando.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/4509571727418713400/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/modulo2-tablas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4509571727418713400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/4509571727418713400'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/modulo2-tablas.html' title='Tablas HTML, &#39;table&#39;, &#39;tr&#39; y &#39;td&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-3608840923080796986</id><published>2010-07-05T16:00:00.031+02:00</published><updated>2010-08-17T14:04:00.603+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="capas"/><category scheme="http://www.blogger.com/atom/ns#" term="comentarios html"/><category scheme="http://www.blogger.com/atom/ns#" term="div"/><category scheme="http://www.blogger.com/atom/ns#" term="maquetacion"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><category scheme="http://www.blogger.com/atom/ns#" term="plantillas"/><category scheme="http://www.blogger.com/atom/ns#" term="span"/><title type='text'>Capas &#39;DIV&#39; y uso de &#39;SPAN&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Una capa es un &lt;u&gt;&lt;strong&gt;contenedor&lt;/strong&gt;&lt;/u&gt; donde se pueden meter elementos html (textos, imágenes, listas, tablas...) y, más capas. Se emplean también mucho para las &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/137-consistencia-en-el-diseno.html&quot;&gt;plantillas html&lt;/a&gt; o la &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/135-espacio-disponible-y-distribucion.html&quot;&gt;maquetación o distribución web&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;La forma de &quot;invocar&quot; una capa desde un documento HTML es:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;div&amp;gt;&lt;br /&gt;
contenido y elementos html y/o más capas &lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;

&lt;p&gt;Y es posible definir &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/138-consistencia-en-el-diseno-las-hojas.html&quot;&gt;&lt;strong&gt;reglas de estilo CSS&lt;/strong&gt;&lt;/a&gt; para los elementos del &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/145-contenido.html&quot;&gt;contenido&lt;/a&gt; que irán dentro de una capa determinada, que luego se invocará desde el documento HTML de la siguiente forma:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;div &lt;strong&gt;class=&quot;nombre_capa_en_css&quot;&amp;gt;&lt;/strong&gt;&lt;br /&gt;
contenido y elementos html y/o más capas&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;

&lt;p&gt;Y para &quot;definir&quot; (declarar o crear) una &lt;strong&gt;capa&lt;/strong&gt; en el documento CSS, se procede de la misma manera que para crear una &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/138-consistencia-en-el-diseno-las-hojas.html#clase&quot;&gt;&lt;strong&gt;clase dentro del CSS&lt;/strong&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;.nombre_capa_en_css{&lt;br /&gt;
    &lt;em&gt;propiead1&lt;/em&gt;: &lt;em&gt;valor1&lt;/em&gt;;&lt;br /&gt;
    &lt;em&gt;propiead2&lt;/em&gt;: &lt;em&gt;valor2&lt;/em&gt;;&lt;br /&gt;
    &lt;em&gt;propiead3&lt;/em&gt;: &lt;em&gt;valor3&lt;/em&gt;;&lt;br /&gt;
}&lt;/div&gt;

&lt;p&gt;Por ejemplo, una capa típica es una que abarca todo el contenido del documento &lt;em&gt;html&lt;/em&gt;, la capa &lt;strong&gt;contenedor&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;.contenedor{&lt;br /&gt;
    &lt;em&gt;width&lt;/em&gt;: &lt;em&gt;880px&lt;/em&gt;; &lt;em&gt;/* 880 píxeles de ancho para la capa */&lt;/em&gt;&lt;br /&gt;
    &lt;em&gt;height&lt;/em&gt;: &lt;em&gt;100%&lt;/em&gt;; &lt;em&gt;/* la altura será el 100% de lo alto de todo el documento */&lt;/em&gt;&lt;br /&gt;
    &lt;em&gt;margin&lt;/em&gt;: &lt;em&gt;auto&lt;/em&gt;; &lt;em&gt;/* margen externo automático */&lt;/em&gt;&lt;br /&gt;
}&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;
&lt;h2&gt;Comentarios HTML&lt;/h2&gt;
&lt;p&gt;En el código anterior, los textos que van entre las cadenas de caracteres &quot;&lt;strong&gt;/*&lt;/strong&gt;&quot; y &quot;&lt;strong&gt;*/&lt;/strong&gt;&quot; son comentarios de &#39;&lt;em&gt;control&lt;/em&gt;&#39; para el Webmaster, o sea, no tienen ningún efecto en el &quot;comportamiento&quot; del documento a la hora visualizarlo en un navegador web.&lt;/p&gt;

&lt;p&gt;Ya de paso, los comentarios en el documento HTML se ponen entre los caracteres &lt;strong&gt;&amp;lt;!--&lt;/strong&gt; y &lt;strong&gt;--&amp;gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Ejemplo de capas:

&lt;div class=&quot;codigo&quot;&gt;&lt;h2 class=&quot;centro&quot;&gt;Capa 1&lt;/h2&gt;
&lt;p&gt;Contenido de la capa 1&lt;/p&gt;
&lt;div class=&quot;ejemplo&quot;&gt;&lt;h2 class=&quot;centro&quot;&gt;Capa 2&lt;/h2&gt;
&lt;p&gt;Contenido de la capa 2&lt;/p&gt;
&lt;div class=&quot;cita&quot;&gt;&lt;h2 class=&quot;centro&quot;&gt;Capa 3&lt;/h2&gt;
&lt;p&gt;Contenido de la capa 3&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Más contenido de la capa 1&lt;/p&gt;
&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Las capas de este ejemplo están definidas en el fichero CSS de este blog con sus colores de fondo, para que muestren los bordes de color negro, y un margen externo de 5 píxeles (&lt;span class=&quot;rojo&quot;&gt;width: 5px;&lt;/span&gt;)&lt;/div&gt;
&lt;/p&gt;

&lt;p&gt;Algunos enlaces sobre uso de capas, estructura y maquetación HTML, o maquetación web:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.lawebera.es/maquetacion-web/introduccion-uso-capas-css-xhtml-html.php&quot;&gt;Introducción al uso de capas con CSS y XHTML / HTML&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.lawebera.es/maquetacion-web/maquetar-paginas-web-posicion-capas-ii.php&quot;&gt;Maquetación de páginas web: posición de las capas&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://www.grafikas.es/web_apuntes/capas.htm&quot;&gt;Estructura y maquetación de una página Web con capas y CSS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;h2&gt;Uso de la etiqueta SPAN&lt;/h2&gt;

&lt;p&gt;La etiqueta &lt;strong&gt;&amp;lt;span&amp;gt;&lt;/strong&gt; se usa para aplicar un estilo diferente a un determinado texto de, por ejemplo, un parrafo:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;En el fichero CSS
&lt;div class=&quot;codigo&quot;&gt;&lt;strong&gt;.rojo&lt;/strong&gt; {&lt;br /&gt;
  color: red;&lt;br /&gt;
  font-weight: bold;&lt;br /&gt;
}&lt;/div&gt;&lt;/li&gt;

&lt;li&gt;En el fichero html
&lt;div class=&quot;codigo&quot;&gt;&amp;lt;p&amp;gt;No bebas &amp;lt;span class=&quot;&lt;strong&gt;rojo&lt;/strong&gt;&quot;&amp;gt;lejía&amp;lt;/span&amp;gt; que es perjudicial para la salud.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Al visualizarlo en el navegador:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;&lt;p&gt;No bebas &lt;span class=&quot;rojo&quot;&gt;lejía&lt;/span&gt; que es perjudicial para la salud.&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;Por otro lado, si queremos que todos los &lt;strong&gt;span&lt;/strong&gt; se muestren de la misma forma -en negrita y de color rojo de color rojo- dentro del documento html, se puede definir una regla para &lt;strong&gt;span&lt;/strong&gt; dentro del fichero CSS:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&lt;strong&gt;span&lt;/strong&gt; {&lt;br /&gt;
  color: red;&lt;br /&gt;
  font-weight: bold;&lt;br /&gt;
}&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;&lt;span class=&quot;rojo&quot;&gt;IMPORTANTE&lt;/span&gt; Observar en este ejemplo, el &lt;em&gt;selector&lt;/em&gt; la declaración de la regla &quot;&lt;em&gt;span&lt;/em&gt;&quot; no lleva delante el caracter &quot;&lt;strong&gt;.&lt;/strong&gt;&quot;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/3608840923080796986/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/modulo-2-capas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/3608840923080796986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/3608840923080796986'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/modulo-2-capas.html' title='Capas &#39;DIV&#39; y uso de &#39;SPAN&#39;'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-951078755164542534</id><published>2010-07-04T23:33:00.005+02:00</published><updated>2010-08-15T19:50:47.704+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="indice"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 2"/><title type='text'>Modulo 2 (indice). Diseño de un sitio web corporativo</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;En el curso, al principio de este &lt;strong&gt;módulo 2&lt;/strong&gt; se siguió viendo algunos tipos de contenido de datos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/modulo-2-capas.html&quot;&gt;&lt;strong&gt;Capas DIV y uso de SPAN&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/modulo2-tablas.html&quot;&gt;&lt;strong&gt;Tablas HTML: &#39;table&#39;, &#39;tr&#39;, &#39;td&#39; y &#39;th&#39;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/08/tablas-html-fusion-de-celdas-con.html&quot;&gt;&lt;strong&gt;Tablas HTML: fusión de celdas con &#39;colspan&#39; y &#39;rowspan&#39;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/08/tablas-html-cabeceras-y-pie-de-tablas.html&quot;&gt;&lt;strong&gt;Tablas HTML: Cabeceras y Pié de tablas con &#39;thead&#39;, &#39;tfoot&#39;,y &#39;tbody&#39;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/08/listas-html-ul-ol-y-li.html&quot;&gt;&lt;strong&gt;Listas HTML: &#39;ul&#39;, &#39;ol&#39; y &#39;li&#39;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Formularios (i)&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/951078755164542534/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/modulo-2-indice-diseno-de-un-sitio-web.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/951078755164542534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/951078755164542534'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/modulo-2-indice-diseno-de-un-sitio-web.html' title='Modulo 2 (indice). Diseño de un sitio web corporativo'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-1030793170718722556</id><published>2010-07-02T17:00:00.008+02:00</published><updated>2010-08-14T21:12:55.536+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="imagotipo"/><category scheme="http://www.blogger.com/atom/ns#" term="logotipo"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><title type='text'>1.4.6 Logotipos</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;La función clave de un &lt;b&gt;logotipo&lt;/b&gt; es identificar. Por lo tanto, un logotipo debe ser &lt;i&gt;identificativo&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;Tipos de logotipos:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Basados en la propiedad&lt;/b&gt; del propietario de la marca (&lt;i&gt;kellog&#39;s&lt;/i&gt;, &lt;i&gt;Levi&#39;s&lt;/i&gt;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;contracción de la marca&lt;/b&gt;, o sus iniciales (&lt;i&gt;BPL&lt;/i&gt;, &lt;i&gt;CHS&lt;/i&gt;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Asociación nombre + imagen&lt;/b&gt; (icónico o abstracto)&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;cita&quot;&gt;&quot;&lt;em&gt;Logotipo&lt;/em&gt;&quot; se refiere a la parte textual del diseño e &quot;&lt;em&gt;imagotipo&lt;/em&gt;&quot; se refiere a la parte gráfica, pero solemos llamar &quot;&lt;em&gt;logotipo&lt;/em&gt;&quot; de forma genérica a todo el conjunto.&lt;/div&gt;

&lt;p&gt;Logotipos de las web 2.0 &lt;a href=&quot;http://fontfeed.com/archives/the-logos-of-web-20/&quot;&gt;http://fontfeed.com/archives/the-logos-of-web-20/&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/1030793170718722556/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/146-logotipos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1030793170718722556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1030793170718722556'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/146-logotipos.html' title='1.4.6 Logotipos'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-7266989490735991361</id><published>2010-07-02T16:30:00.016+02:00</published><updated>2010-08-15T20:53:53.638+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="contenido web"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="cursiva"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="negrita"/><category scheme="http://www.blogger.com/atom/ns#" term="parrafos de texto"/><title type='text'>1.4.5 Contenido</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;El contenido es el recurso más importante de un sitio web, por encima del diseño, los gráficos o cualquier otro elemento.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Contenido apropiado para tus lectores&lt;/b&gt;: tus textos han de tratar sobre las preocupaciones de los usuarios, lo que es importante para ellos, y en su lenguaje. Explica el problema que resuelves y cómo lo haces. Esto es o que les interesa a las personas que visitan tu web.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Diseño de autoservicio&lt;/b&gt;: una web es un autoservicio, y un establecimiento de  este tipo está centrado en la conveniencia, la velocidad y lo económico:&lt;/li&gt;

 &lt;ul&gt;
 &lt;li&gt;Es conveniente cuando el usuario apenas tiene que pensar.&lt;/li&gt;
 &lt;li&gt;Es veloz cuando se reduce el tiempo que tarda el usuario en encontrar lo que quiere.&lt;/li&gt;
 &lt;li&gt;Es económico cuando con poco esfuerzo el usuario consigue realizar su acción&lt;/li&gt;
 &lt;/ul&gt;

&lt;li&gt;&lt;b&gt;El formato de los textos&lt;/b&gt;: los usuarios escanean tus páginas, leyendo frases y palabras sueltas en pocos segundos con la intención de hacerse una idea de lo que contiene tu web. El formato de tus textos ha de ser acorde con ello.&lt;br /&gt;&lt;br /&gt;

Usar &lt;b&gt;negritas&lt;/b&gt; y párrafos de poca anchura y con una única idea. También usar un color diferente en palabras que quieras resaltar.&lt;br /&gt;&lt;br /&gt;

El tamaño de los textos es importante.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Estructura del contenido&lt;/b&gt;: utiliza el estilo de &quot;&lt;strong&gt;pirámide invertida&lt;/strong&gt;&quot;: las conclusiones y lo más importante se presenta primero, y a continuación los detalles y la información de soporte. Trata de lo más específico a lo más general.

&lt;div class=&quot;cita&quot;&gt;Lo ideal es que el usuario encuentre en la primera línea la información esencial.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;h2&gt;Párrafos de texto &#39;p&#39;&lt;/h2&gt;

&lt;p&gt;Ya hemos visto algunos elementos ya vistos como son las &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/143-imagenes.html&quot;&gt;imágenes&lt;/a&gt; y los &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/144-vinculos.html&quot;&gt;vínculos&lt;/a&gt;, los &lt;strong&gt;párrafos de texto&lt;/strong&gt; se definen dentro del documento HTML con la etiqueta &lt;strong&gt;&amp;lt;p&amp;gt;&lt;/strong&gt; de la siguiente manera:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&lt;strong&gt;&amp;lt;p&amp;gt;&lt;/strong&gt;&lt;em&gt;Aquí va el texto del párrafo&lt;/em&gt;&lt;strong&gt;&amp;lt;/p&amp;gt;&lt;/strong&gt;&lt;/div&gt;

&lt;p&gt;Y el código anterior se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;&lt;p&gt;Aquí va el texto del párrafo&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;Dentro de un párrafo de texto se pueden incluir imágenes (alineadas a la izquierda o derecha del texto)y otros elementos que veremos más adelante como &lt;em&gt;capas, tablas, listas, etc&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;Texto en negrita &#39;strong&#39;&lt;/h2&gt;

&lt;p&gt;El &lt;strong&gt;texto en negrita&lt;/strong&gt; se define con la etiqueta &lt;strong&gt;&amp;lt;strong&amp;gt;&lt;/strong&gt; de la siguiente manera:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;p&amp;gt;Aquí va el &lt;strong&gt;&amp;lt;strong&amp;gt;texto en negrita&amp;lt;/strong&amp;gt;&lt;/strong&gt; del párrafo&amp;lt;/p&amp;gt;&lt;/div&gt;

&lt;p&gt;Y el código anterior se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;&lt;p&gt;Aquí va el &lt;strong&gt;texto en negrita&lt;/strong&gt; del párrafo&lt;/p&gt;&lt;/div&gt;

&lt;h2&gt;Texto en cursiva &#39;em&#39;&lt;/h2&gt;

&lt;p&gt;El &lt;strong&gt;texto en cursiva&lt;/strong&gt; se hace con la etiqueta &lt;strong&gt;&amp;lt;em&amp;gt;&lt;/strong&gt; de la siguiente manera:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;p&amp;gt;Aquí va el &lt;em&gt;&amp;lt;em&amp;gt;texto en cursiva&amp;lt;/em&amp;gt;&lt;/em&gt; del párrafo&amp;lt;/p&amp;gt;&lt;/div&gt;

&lt;p&gt;Y el código anterior se mostrará así:&lt;/p&gt;

&lt;div class=&quot;ejemplo&quot;&gt;&lt;p&gt;Aquí va el &lt;em&gt;texto en cursiva&lt;/em&gt; del párrafo&lt;/p&gt;&lt;/div&gt;

&lt;h2&gt;Saltos de línea &#39;br /&#39; y lineas horizontales &#39;hr /&#39;&lt;/h2&gt;

&lt;p&gt;Un &lt;strong&gt;salto de línea&lt;/strong&gt; se hace con la etiqueta &lt;strong&gt;&amp;lt;br /&amp;gt;&lt;/strong&gt;, y no usa etiqueta de cierre. Una &lt;strong&gt;linea horizontal&lt;/strong&gt; se hace con la etiqueta &lt;strong&gt;&amp;lt;hr /&amp;gt;&lt;/strong&gt;, y tampoco tiene etiqueta de cierre, se usan de la siguiente manera:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;p&amp;gt;Aquí va un salto de linea&lt;strong&gt;&amp;lt;br /&amp;gt;&lt;/strong&gt;aquí viene otro&lt;strong&gt;&amp;lt;br /&amp;gt;&lt;/strong&gt;y aquí otro&lt;strong&gt;&amp;lt;br /&amp;gt;&lt;/strong&gt;y ahora una linea horizontal&lt;strong&gt;&amp;lt;hr /&amp;gt;&lt;/strong&gt;y otra más&lt;strong&gt;&amp;lt;hr /&amp;gt;&lt;/strong&gt; y ya está bien...&amp;lt;/p&amp;gt;&lt;/div&gt;

&lt;div class=&quot;ejemplo&quot;&gt;&lt;p&gt;Aquí va un salto de linea&lt;br /&gt;aquí viene otro&lt;br /&gt;y aquí otro&lt;br /&gt;y ahora una linea horizontal&lt;hr /&gt;y otra más&lt;hr /&gt; y ya está bien...&lt;/p&gt;&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Las lineas horizontales (o separadores) admiten algunas reglas CSS para determinar su color, grosor o el ancho.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/7266989490735991361/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/145-contenido.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7266989490735991361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7266989490735991361'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/145-contenido.html' title='1.4.5 Contenido'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-1419390759098842425</id><published>2010-07-02T16:00:00.044+02:00</published><updated>2010-09-15T13:40:11.933+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ancla"/><category scheme="http://www.blogger.com/atom/ns#" term="enlaces"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="robots buscadores"/><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><title type='text'>1.4.4 Vínculos (enlaces, o hipervínculos)</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; alt=&quot;logo COEPA&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;también llamados &lt;em&gt;hiperenlaces&lt;/em&gt;, &lt;em&gt;enlaces&lt;/em&gt; o &quot;&lt;em&gt;links&lt;/em&gt;&quot;.&lt;/p&gt;

&lt;p&gt;Es una &lt;em&gt;palabra&lt;/em&gt;, &lt;em&gt;frase&lt;/em&gt; o &lt;em&gt;imagen&lt;/em&gt; de un &lt;a href=&quot;http://es.wikipedia.org/wiki/Hipertexto&quot;&gt;&lt;em&gt;hipertexto&lt;/em&gt;&lt;/a&gt; (&lt;a href=&quot;http://es.wikipedia.org/wiki/HTML&quot;&gt;HTML&lt;/a&gt;) que conecta con otra información. En la &lt;a href=&quot;http://es.wikipedia.org/wiki/WWW&quot;&gt;WWW&lt;/a&gt;, los enlaces (o vínculos) de una página &lt;a href=&quot;http://es.wikipedia.org/wiki/WEB&quot;&gt;WEB&lt;/a&gt; &lt;em&gt;conectan&lt;/em&gt; con otras páginas, a menudo muy alejadas físicamente, pero relacionadas por sus temáticas. Hay enlaces de dos tipos genéricos, &lt;strong&gt;enlaces externos&lt;/strong&gt; y &lt;strong&gt;enlaces internos&lt;/strong&gt;:&lt;/p&gt;

&lt;h2&gt;Definir un enlace externo en un documento HTML:&lt;/h2&gt;

&lt;p&gt;Los &lt;strong&gt;enlaces externos&lt;/strong&gt; son los que, al hacer click sobre ellos, siempre nos llevan a otro documento o página web diferente al que nos encontramos. Podemos definir un enlace desde el cual acceder a otra página cuando hacemos clic sobre el texto del enlace o sobre una imagen:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a &lt;strong&gt;href=&quot;http://direccion-web.com/lo_que-sea&quot;&amp;gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;palabra&lt;/em&gt;&lt;/strong&gt; o &lt;strong&gt;&lt;em&gt;una frase concreta&lt;/em&gt;&lt;/strong&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Tanto a la &quot;&lt;em&gt;palabra&lt;/em&gt;&quot; como a &quot;&lt;em&gt;una frase concreta&lt;/em&gt;&quot; se les denomina  &lt;strong&gt;texto ancla&lt;/strong&gt; (o en inglés: &lt;strong&gt;anchor text&lt;/strong&gt;).&lt;/div&gt;&lt;/li&gt;

&lt;li&gt;&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a href=&quot;http://direccion-web.com&quot;&amp;gt;&lt;strong&gt;una imagen &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/143-imagenes.html#contenido_img&quot;&gt;como contenido&lt;/a&gt;&lt;/strong&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;En el caso de imágenes, recordar &lt;strong&gt;siempre&lt;/strong&gt; etiquetar la imagen con el atributo &lt;code&gt;&lt;strong&gt;alt=&lt;/strong&gt;&quot;descripción de la imágen&quot;&lt;/code&gt; por motivos de accesibilidad y de indexación en buscadores.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Enlaces Internos:&lt;/h2&gt;

&lt;p&gt;Los &lt;strong&gt;enlaces internos&lt;/strong&gt; son enlaces enlaces que nos conducen a otra parte del mismo documento en el que estamos (&lt;strong&gt;NO&lt;/strong&gt; a otro documento html del mismo sitio web).&lt;/p&gt;

&lt;p&gt;Para acceder a una parte concreta dentro de un documento html hay que insertar &quot;&lt;strong&gt;anclas&lt;/strong&gt;&quot; dentro del un documento (no &quot;&lt;em&gt;texto ancla&lt;/em&gt;&quot; o &quot;&lt;em&gt;anchor text&lt;/em&gt;&quot; mencionados antes en la creación de enlaces), y estas &quot;&lt;strong&gt;anclas&lt;/strong&gt;&quot; se definen con el atributo &quot;&lt;strong&gt;name&lt;/strong&gt;&quot; en lugar de &quot;&lt;strong&gt;href&lt;/strong&gt;&quot;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a &lt;strong&gt;name&lt;/strong&gt;=&quot;&lt;strong&gt;texto_identificativo_del_ancla&lt;/strong&gt;&quot;&amp;gt;&lt;em&gt;entidad a la que hacemos referencia&lt;/em&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

En el &quot;&lt;em&gt;texto_identificativo_del_ancla&lt;/em&gt;&quot; no se pueden usar guiones medios (&lt;strong&gt;-&lt;/strong&gt;) ni espacios, ni caracteres especiales. Es bueno, en este caso, usar guiones bajos (&lt;strong&gt;_&lt;/strong&gt;) para separar las palabras. En la &quot;&lt;em&gt;entidad a la que hacemos referencia&lt;/em&gt;&quot; se puede poner una párrafo -con sus respectivas etiquetas de apertura &lt;strong&gt;&amp;lt;p&amp;gt;&lt;/strong&gt; y cierre &lt;strong&gt;&amp;lt;/p&amp;gt;&lt;/strong&gt;-, una imagen o lo que queramos, pero es más normal que esa &quot;entidad&quot; sea algún encabezado tipo &lt;strong&gt;&amp;lt;H2&amp;gt;&lt;/strong&gt;, &lt;strong&gt;&amp;lt;H3&amp;gt;&lt;/strong&gt;, etc. El uso de &quot;&lt;strong&gt;anclas&lt;/strong&gt;&quot; se recomendable para &lt;a href=&quot;http://es.wikipedia.org/wiki/Search_engine_optimization&quot;&gt;SEO&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Y el enlace a ese &quot;&lt;strong&gt;ancla&lt;/strong&gt;&quot; que hemos definido:&lt;/p&gt;


&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a href=&quot;&lt;strong&gt;#texto_identificativo_del_ancla&lt;/strong&gt;&quot;&amp;gt;&lt;em&gt;palabra&lt;/em&gt; o &lt;em&gt;frase&lt;/em&gt; o &lt;em&gt;imagen&lt;/em&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

&lt;p&gt;Y el enlace a un &quot;&lt;strong&gt;ancla&lt;/strong&gt;&quot; de una página externa, u otro documento html del mismo site:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;
&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a href=&quot;url/direccion-web.html&lt;strong&gt;#&lt;/strong&gt;texto_identificativo_del_ancla&quot;&amp;gt;&lt;em&gt;palabra&lt;/em&gt; o &lt;em&gt;frase&lt;/em&gt; o &lt;em&gt;imagen&lt;/em&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

En primer lugar la &lt;strong&gt;url&lt;/strong&gt;, que debe tener guiones medios (&lt;strong&gt;-&lt;/strong&gt;) entre las palabras, después el símbolo &lt;strong&gt;almoadilla&lt;/strong&gt; (&lt;strong&gt;#&lt;/strong&gt;) y el &quot;&lt;em&gt;texto_identificativo_del_ancla&lt;/em&gt;&quot; con guiones bajos (&lt;strong&gt;_&lt;/strong&gt;) para separar las palabras&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Atributos de enlaces&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Atributo &quot;&lt;strong&gt;target&lt;/strong&gt;&quot;: Tal y como estamos haciendo estos enlaces, lo normal es que al hacer clic sobre uno de ellos, la web a la que &quot;apunta&quot; ese enlace aparezca en la misma ventana del navegador web que estamos usando, pero hemos visto que en ocasiones, al hacer clic en un enlace de una página web, la web de dicho enlace se nos abre en otra ventana (o pestaña) del navegador.&lt;br /&gt;

&lt;p&gt;Para que los enlaces de nuestra web se comporten de esta manera, debemos agregar a nuestra etiqueta de enlace &lt;strong&gt;&amp;lt;a&amp;gt;&lt;/strong&gt; el atributo &lt;strong&gt;target&lt;/strong&gt; con el valor &lt;strong&gt;=&quot;_blank&quot;&lt;/strong&gt;:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a &lt;strong&gt;target=&quot;_blank&quot;&lt;/strong&gt; href=&quot;nuestro-enlace.html&quot;&amp;gt;texto o imagen&lt;strong&gt; &amp;lt;/a&amp;gt;&lt;/strong&gt;&lt;/div&gt;

&lt;p&gt;Otros dos valores que tiene el atributo &lt;strong&gt;target&lt;/strong&gt; -hoy en día en desuso, ya que se empleaban en las web diseñadas con &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/133-estructuras-de-navagacion.html#frames_marcos&quot;&gt;&lt;em&gt;marcos&lt;/em&gt; o &lt;em&gt;frames&lt;/em&gt;&lt;/a&gt;- son &lt;strong&gt;=&quot;_self&quot;&lt;/strong&gt; y &lt;strong&gt;=&quot;_top&quot;&lt;/strong&gt;. Con &lt;strong&gt;=&quot;_self&quot;&lt;/strong&gt;, al hacer clic en un enlace, la pagina de dicho enlace se abre en el &lt;em&gt;marco&lt;/em&gt; (o frame) actual, mientras que con &lt;strong&gt;=&quot;_top&quot;&lt;/strong&gt; desaparecen los marcos y la web del enlace a la que hemos hecho clic se mostrará ocupando toda la ventana del navegador web.&lt;/p&gt;

&lt;p&gt;Si no usamos el atributo &lt;strong&gt;target&lt;/strong&gt;, cualquier navegador se comportará como si se emplease &lt;strong&gt;target=&quot;_self&quot;&lt;/strong&gt;, y cuando estamos navegando como usuario en una web, si queremos que los enlacen se comporten como &lt;strong&gt;target=&quot;_blank&quot;&lt;/strong&gt; deberemos hacer clic sobre ellos con el botón central (o presinando la ruleta) del ratón.&lt;/li&gt;

&lt;li&gt;Atributo &quot;&lt;strong&gt;rel&lt;/strong&gt;&quot;: para robots de buscadores (SEO)&lt;br /&gt;

&lt;p&gt;Teniendo en cuenta que el &lt;em&gt;robot&lt;/em&gt; de Google solo mira los primeros 100 enlaces de un sitio web (también otros buscadores), en determinados casos puede que nos interese que algunos enlaces &lt;strong&gt;no&lt;/strong&gt; sean considerados por los robots de los buscadores, para esto se puede usar el atributo &lt;strong&gt;rel&lt;/strong&gt;... A los enlaces normales se les denomina &lt;strong&gt;DOFOLLOW&lt;/strong&gt; (opción por defecto), mientras que a los que no queremos que sean indexados por los robots de búsqueda se les denomina &lt;strong&gt;NOFOLLOW&lt;/strong&gt;. Para indicarle a los robots de búsqueda que no tengan en consideración un enlace:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a &lt;strong&gt;rel=&quot;nofollow&quot;&lt;/strong&gt; href=&quot;nuestro-enlace.html&quot;&amp;gt;texto o imagen&amp;lt;/a&amp;gt;&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;Atributo &quot;&lt;strong&gt;title&lt;/strong&gt;&quot;: se emplea para añadir una descripción al enlace, además, tiene más relevancia este atributo que el propio &lt;em&gt;texto ancla&lt;/em&gt; del enlace:

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a target=&quot;_blank&quot; &lt;strong&gt;title=&quot;WarWys blog&quot;&lt;/strong&gt; href=&quot;http://warwys.blogspot.com&quot;&amp;gt;&lt;em&gt;WarWys&lt;/em&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

&lt;div class=&quot;ejemplo&quot;&gt;&lt;a target=&quot;_blank&quot; title=&quot;WarWys blog&quot; href=&quot;http://warwys.blogspot.com&quot;&gt;WarWys&lt;/a&gt;&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Al situar el puntero del ratón sobre el texto del enlace (o &lt;em&gt;texto ancla&lt;/em&gt;) aparece el valor del atributo &#39;&lt;strong&gt;title&lt;/strong&gt;&#39;, y como se ha indicado arriba, &lt;strong&gt;el texto de &#39;&lt;em&gt;title&lt;/em&gt;&#39; tiene más relevancia que el propio &lt;em&gt;texto ancla&lt;/em&gt; del enlace&lt;/strong&gt; para los motores de búsqueda.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;table class=&quot;tabla&quot; summary=&quot;Sobre enlaces externos e internos&quot;&gt;
&lt;caption&gt;Sobre enlaces externos e internos&lt;/caption&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;
&lt;th scope=&quot;col&quot;&gt;Cuando hablamos de Diseño web&lt;/th&gt;
&lt;th scope=&quot;col&quot;&gt;Cuando hablamos de &lt;a target=&quot;_blank&quot; title=&quot;Wikipedia - SEO&quot; href=&quot;http://es.wikipedia.org/wiki/Posicionamiento_en_buscadores&quot;&gt;&lt;span class=&quot;rojo&quot;&gt;SEO&lt;/span&gt;&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th scope=&quot;row&quot;&gt;Enlaces internos&lt;/th&gt;
&lt;td&gt;Enlazan a una parte del mismo documento HTML en el que nos encontramos.&lt;/td&gt;
&lt;td&gt;Enlazan a las páginas del mismo sitio web en el que nos encontramos.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th scope=&quot;row&quot;&gt;Enlaces externos&lt;/th&gt;
&lt;td&gt;Enlazan a otro documento HTML que puede ser del mismo sitio web o de otro sitio web diferente.&lt;/td&gt;
&lt;/td&gt;
&lt;td&gt;Enlazan a otro otro sitio web diferente al que nos encontramos.&lt;/li&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;h2&gt;Enlaces a direcciones de correo electrónico (email)&lt;/h2&gt;

&lt;p&gt;Al hacer click sobre este tipo de enlaces se abrirá el programa &lt;a target=&quot;_blank&quot; href=&quot;http://es.wikipedia.org/wiki/Cliente_de_correo_electr%C3%B3nico&quot;&gt;cliente de correo electrónico&lt;/a&gt; que tengamos por defecto instalado en el sistema con la dirección de correo electrónico del enlace para empezar a escribir el mensaje:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;a href=&quot;&lt;strong&gt;mailto:correoelectronico@dominio.com&quot;&lt;/strong&gt; &amp;gt;&lt;em&gt;texto o imagen&lt;/em&gt;&amp;lt;/a&amp;gt;&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;Estos enlaces están en desuso, ya que &lt;span class=&quot;rojo&quot;&gt;son escaneados con intenciones fraudulentas&lt;/span&gt; como el envío de &lt;strong&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://es.wikipedia.org/wiki/Spam&quot;&gt;spam (o coreo basura)&lt;/a&gt;&lt;/strong&gt;.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/1419390759098842425/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/144-vinculos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1419390759098842425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1419390759098842425'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/144-vinculos.html' title='1.4.4 Vínculos (enlaces, o hipervínculos)'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-6064568394072144743</id><published>2010-07-01T16:00:00.035+02:00</published><updated>2011-07-18T18:55:24.292+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="gif"/><category scheme="http://www.blogger.com/atom/ns#" term="imagen"/><category scheme="http://www.blogger.com/atom/ns#" term="img"/><category scheme="http://www.blogger.com/atom/ns#" term="jpg"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="png"/><title type='text'>1.4.3 Imágenes: etiqueta &#39;img&#39;</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;&lt;/p&gt;

&lt;h2&gt;Formatos de imagen&lt;/h2&gt;

&lt;p&gt;Los hay de varios tipos como &lt;a href=&quot;http://es.wikipedia.org/wiki/Windows_bitmap&quot;&gt;&lt;b&gt;bmp&lt;/b&gt;&lt;/a&gt;, &lt;a href=&quot;http://es.wikipedia.org/wiki/Gif&quot;&gt;&lt;b&gt;gif&lt;/b&gt;&lt;/a&gt;, &lt;a href=&quot;http://es.wikipedia.org/wiki/Jpg&quot;&gt;&lt;b&gt;jpg&lt;/b&gt;&lt;/a&gt;, &lt;a href=&quot;http://es.wikipedia.org/wiki/PNG&quot;&gt;&lt;b&gt;png&lt;/b&gt;&lt;/a&gt;... pero no todos ellos son adecuados para la web, algunos ocupan demasiada memoria o no son compatibles con algunos navegadores.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Formato JPG o JPEG&lt;/b&gt;: se creó para almacenar fotografías, y cada una puede disponer de hasta &lt;b&gt;16 millones de colores&lt;/b&gt; ocupando un reducido tamaño.&lt;br /&gt;

Cuanto mayor es su &lt;a href=&quot;http://es.wikipedia.org/wiki/Compresi%C3%B3n_de_datos&quot;&gt;compresión&lt;/a&gt; peor es la calidad, pero el tamaño de la imagen será menor.&lt;br /&gt;

La resolución ideal para la pantalla es de &lt;b&gt;72 píxeles&lt;/b&gt; por pulgada (también &lt;a href=&quot;http://es.wikipedia.org/wiki/Puntos_por_pulgada&quot;&gt;&lt;em&gt;ppp&lt;/em&gt;&lt;/a&gt;, ó &lt;a href=&quot;http://es.wikipedia.org/wiki/DPI&quot;&gt;&lt;em&gt;dpi&lt;/em&gt;&lt;/a&gt;), para la imprenta se recomiendan &lt;b&gt;300 ppp&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;

&lt;li&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhft_5mmo6CS6fSOPOIH1HGpmyUICcZocDuVD_W6gRXBjc4VHQrZIQlajfbARfF3ldf1K14VgrgL9Jkbn-lHhUqkhKM13_czE4dAJZPzJTusn4daStr4PI_SbhLw4YVVmH6EseLjTka0A4/&quot; alt=&quot;gif del planeta tierra girando sobre su eje&quot; border=&quot;0&quot; title=&quot;gif del planeta tierra girando sobre su eje&quot; /&gt;&lt;b&gt;Formato GIF&lt;/b&gt;: es el más usado en Internet, almacenan un máximo de &lt;b&gt;256 colores o tonos de gris&lt;/b&gt; -para imágenes en blanco y negro-. Admite &lt;b&gt;imágenes transparentes&lt;/b&gt;, &lt;b&gt;entrelazadas&lt;/b&gt; -que van apareciendo a medida que las va cargando el navegador web- e &lt;b&gt;imágenes animadas&lt;/b&gt; -guardando varias imágenes en un único fichero.&lt;/li&gt;&lt;br /&gt;

&lt;li&gt;&lt;b&gt;Formato PNG&lt;/b&gt;: se diseño como sucesor del formato GIF, por lo que combina ventajas de los formatos GIF y JPG.&lt;br/&gt;

Ofrece &lt;b&gt;compresión sin perdidas&lt;/b&gt;, admite &lt;b&gt;transparencia&lt;/b&gt; y &lt;b&gt;entrelazado&lt;/b&gt;, permitiendo hasta &lt;b&gt;16 millones de colores&lt;/b&gt; y transparencia de 8 y 24 bits, con lo que se consigue &lt;b&gt;256 niveles de transparencia&lt;/b&gt;... algunos navegadores antiguos como &lt;a href=&quot;http://es.wikipedia.org/wiki/Internet_Explorer_6&quot;&gt;Internet Explorer 6&lt;/a&gt; no soportan las últimas versiones de este formato&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;

&lt;h2&gt;En cuanto al formato a elegir:&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;JPG&lt;/strong&gt; para &lt;strong&gt;fotografías&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GIF&lt;/strong&gt; y &lt;strong&gt;PNG&lt;/strong&gt; para logotipos e imágenes con &lt;strong&gt;colores uniformes&lt;/strong&gt; o &lt;strong&gt;imagenes con texto&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;&lt;a name=&quot;contenido&quot;&gt;Imágenes como entidades (contenido)&lt;/a&gt; y como fondo (diseño)&lt;/h2&gt;

&lt;h3&gt;&lt;a name=&quot;contenido_img&quot;&gt;Como entidad&lt;/a&gt;:&lt;/h3&gt;

&lt;p&gt;Para introducir una imagen en un documento HTML se debe emplear la etiqueta &lt;strong&gt;IMG&lt;/strong&gt; con sus atributos necesarios:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&amp;lt;&lt;strong&gt;img&lt;/strong&gt; &lt;strong&gt;src&lt;/strong&gt;=&quot;ruta-de-la-imagen.gif&quot; &lt;strong&gt;width&lt;/strong&gt;=100 &lt;strong&gt;height&lt;/strong&gt;=50 &lt;strong&gt;alt&lt;/strong&gt;=&quot;texto alternativo&quot; /&amp;gt;
&lt;/div&gt;

&lt;p&gt;Los &lt;strong&gt;atributos&lt;/strong&gt; de la &lt;strong&gt;entidad&lt;/strong&gt; o &lt;strong&gt;etiqueta&lt;/strong&gt; son:&lt;/p&gt;

 &lt;ul&gt;
 &lt;li&gt;&lt;strong&gt;src&lt;/strong&gt; se especifica la ruta y nombre del fichero de la imagen&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;width&lt;/strong&gt; define el ancho de la imagen (en píxeles)&lt;/li&gt;
 &lt;li&gt;&lt;strong&gt;height&lt;/strong&gt; define su altura&lt;/li&gt;
 &lt;li&gt;y entre las comillas de &lt;strong&gt;alt&lt;/strong&gt; se debe introducir &lt;strong&gt;siempre&lt;/strong&gt; un breve texto descriptivo de lo que hay en la imagen, tanto por motivos de accesibilidad para personas discapacitadas, o para accesos desde dispositivos que no pueden mostrar imágenes, como por motivos de indexación por parte de los robots de los buscadores como &lt;strong&gt;Google&lt;/strong&gt;&lt;/li&gt;
 &lt;/ul&gt;

&lt;h3&gt;Como fondo del web (en el archivo de estilo CSS):&lt;/h3&gt;

&lt;div class=&quot;codigo&quot;&gt;body {&lt;br /&gt;
background: url (ruta-de-la-imagen.jpg) repeat;&lt;br /&gt;
}&lt;/div&gt;

 &lt;ul&gt;
 &lt;li&gt;&lt;strong&gt;body&lt;/strong&gt;, que es el &lt;strong&gt;selector&lt;/strong&gt; de la &lt;strong&gt;regla&lt;/strong&gt;, indica que la regla se aplica a todo el cuerpo del documento HTML.&lt;/li&gt;

 &lt;li&gt;&lt;strong&gt;background&lt;/strong&gt; es la &lt;strong&gt;propiedad&lt;/strong&gt; de la &lt;strong&gt;declaración&lt;/strong&gt; de la &lt;strong&gt;regla&lt;/strong&gt;, en este caso se refiere al fondo (background) del documento.&lt;/li&gt;

 &lt;li&gt;Nos queda el &lt;strong&gt;valor&lt;/strong&gt; de la &lt;strong&gt;declaración&lt;/strong&gt;, &lt;strong&gt;url&lt;/strong&gt; es para indicar la ruta y nombre del fichero de la imagen, entre paréntesis &lt;strong&gt;(ruta-de-la-imagen.jpg)&lt;/strong&gt; (o &lt;em&gt;.gif&lt;/em&gt; o &lt;em&gt;.png&lt;/em&gt;), y &lt;strong&gt;repeat;&lt;/strong&gt; es para indicar al navegador web que debe mostrar la imagen repetida en todo el fondo de la página web a visualizar, que es la opción por defecto. Además de &lt;strong&gt;repeat&lt;/strong&gt; también se puede usar &lt;strong&gt;repeat-x&lt;/strong&gt; para que solo repita la imagen en horizontal, &lt;strong&gt;repeat-y&lt;/strong&gt; para que la repita en vertical, o &lt;strong&gt;no-repeat&lt;/strong&gt; para que solo la muestre una vez y no repita. Otra opción es &lt;strong&gt;fixed&lt;/strong&gt;, y es para que no se mueva la imagen de fondo al movernos a lo largo de la web.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dos formas de definir las reglas para definir imagen y color de fondo:&lt;/p&gt;

&lt;p&gt;Forma larga:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&lt;strong&gt;body&lt;/strong&gt; {&lt;br /&gt;
&lt;strong&gt;background-image&lt;/strong&gt;: url(ruta-de-la-imagen.jpg);&lt;br /&gt;
&lt;strong&gt;background-color&lt;/strong&gt;: #CCEECC;&lt;br /&gt;
}
&lt;/div&gt;

&lt;p&gt;Forma corta:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;
&lt;strong&gt;body&lt;/strong&gt; {&lt;br /&gt;
&lt;strong&gt;background&lt;/strong&gt;: #CCEECC, url(ruta-de-la-imagen.jpg);&lt;br /&gt;
}
&lt;/div&gt;

&lt;h2&gt;Bancos de imágenes on line:&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;De pago, pero &lt;strong&gt;ojo&lt;/strong&gt; con las opciones de las licencias:&lt;/li&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.istockphoto.com/&quot;&gt;istockphoto.com&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.photolia.com/&quot;&gt;photolia.com&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
&lt;li&gt;Gratis, o con licencia &lt;a target=&quot;_blank&quot; href=&quot;http://es.wikipedia.org/wiki/Creative_Commons&quot;&gt;Creative Commons&lt;/a&gt;:&lt;/li&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.sxc.hu/&quot;&gt;sxc.hu&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://flickrcc.bluemountains.net/&quot;&gt;FlickrCC&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://mediateca.educa.madrid.org/&quot;&gt;Mediateca de EducaMadrid&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.openclipart.org/&quot;&gt;Open Clip Art Gallery&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.openphoto.net/&quot;&gt;Openphoto&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.freedigitalphotos.net/&quot;&gt;Free Digital Photos&lt;/a&gt;.&lt;/li&gt;
 &lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.masternewmedia.org/news/2005/04/01/where_to_find_free_images.htm&quot;&gt;Lista de sitios que ofrecen imágenes free&lt;/a&gt;.&lt;/li&gt;
 &lt;/ul&gt;
&lt;li&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.google.es/&quot;&gt;&lt;strong&gt;Google&lt;/strong&gt;&lt;/a&gt; como buscador de imágenes reutilizables&lt;br/&gt;

Se accede al &lt;a href=&quot;http://www.google.es/imghp?hl=es&amp;tab=wi&quot;&gt;buscador de imágenes de Google&lt;/a&gt;, después en &lt;a href=&quot;http://www.google.es/advanced_image_search?hl=es&quot;&gt;búsqueda avanzada&lt;/a&gt;, y donde pone &lt;strong&gt;Derechos de uso&lt;/strong&gt; (por la parte de abajo de la página) hay que escoger la opción de licencia deseada.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;El &lt;strong&gt;tamaño recomendado&lt;/strong&gt; de una &lt;strong&gt;imagen&lt;/strong&gt; para &lt;strong&gt;insertar&lt;/strong&gt; en una &lt;strong&gt;web&lt;/strong&gt; no debe superar los &lt;strong&gt;50kb&lt;/strong&gt;, tampoco es conveniente cargar la página de muchas imágenes para no ralentizar demasiado su descarga.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/6064568394072144743/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/143-imagenes.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/6064568394072144743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/6064568394072144743'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/07/143-imagenes.html' title='1.4.3 Imágenes: etiqueta &#39;img&#39;'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-8838199715406280697</id><published>2010-06-30T17:00:00.018+02:00</published><updated>2010-08-14T20:40:56.094+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="accesibilidad"/><category scheme="http://www.blogger.com/atom/ns#" term="colores legibles"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="legibilidad"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="tabla de Karl Borggrafe"/><category scheme="http://www.blogger.com/atom/ns#" term="usabilidad"/><title type='text'>1.4.2 Fondo</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Para hablar del fondo de los documentos HTML en el &lt;i&gt;diseño web&lt;/i&gt; tenemos que tener en cuenta conceptos vistos antes como que el diseño &lt;b&gt;siempre&lt;/b&gt; debe estar al servicio del contenido... &lt;i&gt;legibilidad&lt;/i&gt;, &lt;i&gt;usabilidad&lt;/i&gt;, &lt;i&gt;accesibilidad&lt;/i&gt;...&lt;/p&gt;

&lt;h2&gt;La tabla de Karl Borggrafe&lt;/h2&gt;

&lt;p&gt;La tabla de &lt;a href=&quot;http://foros.gxzone.com/77876-info_guia_tabla_de_legibilidad_significado_de_los_colores.html&quot;&gt;Karl Borggrafe&lt;/a&gt; viene a informar sobre la &lt;a href=&quot;http://es.wikipedia.org/wiki/Legibilidad_humana&quot;&gt;legibilidad&lt;/a&gt; de las letras sobre fondos de distintos colores. Las mejores combinaciones son:&lt;/p&gt;

&lt;table cellspacing=&quot;5&quot; align=&quot;center&quot; summary=&quot;La tabla de Karl Borggrafe&quot;&gt;&lt;tbody&gt;

&lt;caption&gt;La tabla de Karl Borggrafe&lt;/caption&gt;
&lt;tr&gt;&lt;td bgcolor=&quot;yellow&quot;&gt;&lt;font color=&quot;black&quot;&gt;&lt;b&gt;1. negro sobre amarillo&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td bgcolor=&quot;blue&quot;&gt;&lt;font color=&quot;white&quot;&gt;&lt;b&gt;6. blanco sobre azul&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td bgcolor=&quot;black&quot;&gt;&lt;font color=&quot;yellow&quot;&gt;&lt;b&gt;2. amarillo sobre negro&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td bgcolor=&quot;yellow&quot;&gt;&lt;font color=&quot;blue&quot;&gt;&lt;b&gt;7. azul sobre amarillo&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td bgcolor=&quot;white&quot;&gt;&lt;font color=&quot;green&quot;&gt;&lt;b&gt;3. verde sobre blanco&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td bgcolor=&quot;white&quot;&gt;&lt;font color=&quot;blue&quot;&gt;&lt;b&gt;8. azul sobre blanco&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td bgcolor=&quot;white&quot;&gt;&lt;font color=&quot;red&quot;&gt;&lt;b&gt;4. rojo sobre blanco&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td bgcolor=&quot;black&quot;&gt;&lt;font color=&quot;white&quot;&gt;&lt;b&gt;9. blanco sobre negro&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td bgcolor=&quot;white&quot;&gt;&lt;font color=&quot;black&quot;&gt;&lt;b&gt;5. negro sobre blanco&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td bgcolor=&quot;yellow&quot;&gt;&lt;font color=&quot;green&quot;&gt;&lt;b&gt;10. verde sobre amarillo&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;... ya vimos como crear reglas una entrada anterior sobre las &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/138-consistencia-en-el-diseno-las-hojas.html&quot;&gt;&lt;b&gt;hojas de estilo&lt;/b&gt;&lt;/a&gt; para colores del texto, tamaño... y también se puede hacer con el fondo de los párrafos.&lt;/p&gt;

&lt;p&gt;Para introducir un color de fondo en toda la página o docuento HTML se debe hacer una &lt;b&gt;regla&lt;/b&gt; en la hoja de estilo &lt;b&gt;CSS&lt;/b&gt;:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;body {&lt;br /&gt;
background: #00ff00;&lt;br /&gt;
}&lt;/div&gt;

&lt;p&gt;... donde &lt;b&gt;00ff00 &lt;/b&gt;en el color &lt;font color=&quot;green&quot;&gt;verde&lt;/font&gt; en &lt;b&gt;hexadecimal&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;En el siguiente punto &lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/07/143-imagenes.html&quot;&gt;&lt;b&gt;1.4.3 Imágenes&lt;/b&gt;&lt;/a&gt; veremos también como introducir imágenes en el fondo de un documento HTML desde la hoja de estilo &lt;b&gt;CSS&lt;/b&gt;.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/8838199715406280697/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/142-fondo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/8838199715406280697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/8838199715406280697'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/142-fondo.html' title='1.4.2 Fondo'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-6760455390212967098</id><published>2010-06-30T16:30:00.016+02:00</published><updated>2010-08-13T03:07:38.629+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="colores"/><category scheme="http://www.blogger.com/atom/ns#" term="hexadecimal"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="rgb"/><title type='text'>1.4.1 Color</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Los colores provocan diferentes sensaciones en las personas; cada color tiene un significado que podemos utilizar al diseñar nuestro sitio web, así podemos sugerir o promover diversas sensaciones en nuestros visitantes.&lt;/p&gt;

&lt;h2&gt;Significado de los colores:&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Blanco&lt;/b&gt;: significa seguridad, pureza y limpieza. A diferencia del negro, el blanco tiene una connotación positiva


Es apropiado para organizaciones caritativas y asociable con hospitales, médicos y esterilidad. Puede usarse en sitios web de productos médicos o relacionados con la salud&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Amarillo&lt;/b&gt;: simboliza la luz del sol. Representa alegría, felicidad, inteligencia y energía.


Al amarillo simula entrar en calor, provoca alegría, estimula nuestra actividad mental y genera energía muscular. Con frecuencia está asociado a la comida


Apropiado para webs infantiles y para ocio. Por su eficacia para atraer la atención, es útil para destacar aspectos importantes de un sitio web.&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Anaranjado&lt;/b&gt;: Representa entusiasmo, felicidad, atracción, creatividad, determinación, éxito, ánimo y estímulo.


Por su alta visibilidad también es útil para captar la atención y subrayar aspectos a destacar de un sitio.&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Rojo&lt;/b&gt;: representa fuego y sangre, está asociado al peligro, la guerra, la energía, fortaleza, determinación así como a la pasión, al deseo y al amor.


Visibilidad alta, para avisos importantes, prohibiciones y llamadas de precaución. Adecuado para sitios web del motor (coches y motos), bebidas energéticas, juegos, deportes y actividades de riesgo.&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Púrpura&lt;/b&gt;: se asocia a la realeza y simboliza poder, nobleza, lujo y ambición. Sugiere riqueza y extravagancia. Asociado con la sabiduría, la creatividad, la independencia, la dignidad.


El &lt;i&gt;púrpura&lt;/i&gt; brillante es ideal para diseños dirigidos a la mujer y es apropiado para diseños dirigidos a niños.&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Azul&lt;/b&gt;: el color del cielo y del mar, asociado con la estabilidad y la profundidad. Adecuado para productos de limpieza (personal, hogar e industrial) y lo relacionado con:

&lt;ul&gt;
&lt;li&gt;El cielo: lineas aéreas, aeropuertos.&lt;/li&gt;
&lt;li&gt;El aire: acondicionadores, paracaidismo.&lt;/li&gt;
&lt;li&gt;El mar: cruceros, vacaciones y deportes marítimos.&lt;/li&gt;
&lt;li&gt;El agua: agua mineral, parques acuáticos, balnearios.&lt;/li&gt;
&lt;li&gt;También es un color adecuado para promocionar productos de alta tecnología o alta precisión&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Verde&lt;/b&gt;: el color de la naturaleza. Representa armonía, crecimiento, exuberancia, fertilidad y frescura.


Por estar asociado con la naturaleza es ideal para webs de jardinería, turismo rural, actividades al aire libre o productos ecológicos.&lt;/li&gt;


&lt;li&gt;&lt;b&gt;Negro&lt;/b&gt;: representa poder, elegancia, formalidad, muerte y misterio. En una web puede dar imagen de elegancia y aumentar la sensación de profundidad y perspectiva. Sin embargo no es recomendable usarlo como fondo, pues disminuye la legibilidad.&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt; El sistema RGB&lt;/h2&gt;

&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii3Sglc02b4OgV-f38E7DdACVsPz7u8PI9dpP56-LqnqAMId7hVWJ9RuQ1TVnSEkEnMCW66uvZQHPII6IAXQV7rtzKqtL76c0A-Z6UdHELkuUdmcKXu6rPDRurfMbPtvZpmVYdz0Kh4x4/&quot; /&gt;Los colores &lt;i&gt;aditivos&lt;/i&gt; son los usados en trabajo gráfico con monitores de ordenador, pues el monitor produce los colores partiendo de tres tubos de &lt;a href=&quot;http://es.wikipedia.org/wiki/Rayos_cat%C3%B3dicos&quot;&gt;&lt;i&gt;rayos catódicos&lt;/i&gt;&lt;/a&gt;: uno &lt;span style=&quot;color:red;&quot;&gt;rojo&lt;/span&gt;, otro &lt;span style=&quot;color:green;&quot;&gt;verde&lt;/span&gt; y otro &lt;span style=&quot;color:blue;&quot;&gt;azul&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;Por este motivo, el modelo de definición de colores usado en trabajos digitales es el &lt;a href=&quot;http://es.wikipedia.org/wiki/Modelo_de_color_RGB&quot;&gt;modelo &lt;strong&gt;RGB(&lt;span style=&quot;color:red;&quot;&gt;red&lt;/span&gt;, &lt;span style=&quot;color:green;&quot;&gt;green&lt;/span&gt;, &lt;span style=&quot;color:blue;&quot;&gt;blue&lt;/span&gt;)&lt;/strong&gt;&lt;/a&gt;. Los valores de cada color van desde 0 a 255  y, combinando sus valores se obtienen todos los colores visibles. Para mostrar el rojo &quot;puro&quot; en RGB, sería &lt;strong&gt;RGB(255, 0, 0)&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;El sistema hexadecimal&lt;/h2&gt;

&lt;p&gt;El &lt;a href=&quot;http://es.wikipedia.org/wiki/Sistema_hexadecimal&quot;&gt;sistema hexadecimal&lt;/a&gt; permite expresar fácilmente un color de la escala &lt;strong&gt;RGB&lt;/strong&gt; al sistema empleado en &lt;b&gt;HTML&lt;/b&gt; y en &lt;a href=&quot;http://es.wikipedia.org/wiki/Sistema_hexadecimal&quot;&gt;&lt;b&gt;javaScript&lt;/b&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;De esta forma, el rojo &quot;puro&quot; &lt;strong&gt;RGB(255, 0, 0)&lt;/strong&gt;, en &lt;strong&gt;sistema hexadecimal&lt;/strong&gt; será &lt;strong&gt;RGB(ff, 0, 0)&lt;/strong&gt;, y en un fichero html o css se representará &lt;strong&gt;#ff0000&lt;/strong&gt;. Para entender mejor esto, con más información y ejemplos de sitios web con colores determinados, mejor visitar siguientes enlaces:&lt;/p&gt;

&lt;div class=&quot;cita&quot;&gt;Colores &lt;strong&gt;aditivos&lt;/strong&gt; y colores &lt;strong&gt;sustractivos&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Colores aditivos: luces de color &lt;strong&gt;(R,G,B)&lt;/strong&gt;: &lt;em&gt;rojo, verde y azul&lt;/em&gt;.&lt;/li&gt;

&lt;li&gt;Colores sustractivos: absorbe los colores y refleja el que se ve &lt;strong&gt;(C,M,Y,K)&lt;/strong&gt;: &lt;em&gt;cian, magenta, amarillo y negro&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;p&gt;Enlaces de interés:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://es.wikipedia.org/wiki/Sistema_hexadecimal&quot;&gt;Sistema hexadecimal (wikipedia)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://es.wikipedia.org/wiki/Colores_HTML&quot;&gt;Colores en html (wikipedia)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ejemplos de &lt;a href=&quot;http://www.formacionmultimedia.net/glosario/display.php?action=view&amp;id=5&amp;from=action=search|by=C&quot;&gt;páginas web con colores aditivos&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/6760455390212967098/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/141-color.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/6760455390212967098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/6760455390212967098'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/141-color.html' title='1.4.1 Color'/><author><name>CarlsWys</name><uri>http://www.blogger.com/profile/06769389868658124365</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7jYPQA9HNRIrvSRmzcoC_QP95qCxYAZQ0jHi2oi7JWn4Qw_vtTaBS-7lnmH5QQTbPsk_lAUowptiMTU8PdeQcOOulvllpgB0yg-1lyltZJxY-wyIy3GSRIDNlWHhEOA/s220/Foto-Carlos-M-Rodriguez-Sala.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-1899753198259191960</id><published>2010-06-29T16:00:00.037+02:00</published><updated>2010-08-15T21:09:46.862+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clase css"/><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="identificador css"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="pseudo-clases"/><category scheme="http://www.blogger.com/atom/ns#" term="regla css"/><title type='text'>1.3.8 Consistencia en el diseño: las hojas de estilo CSS</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Estilo enriquecido &lt;a href=&quot;http://es.wikipedia.org/wiki/Hojas_de_estilo_en_cascada&quot;&gt;CSS&lt;/a&gt;&lt;/b&gt; (Cascade Stile Sheet): &lt;i&gt;Hojas de Estilo en Cascada&lt;/i&gt;. Permite la creación de documentos (páginas HTML) visualmente mucho más ricos separando el &lt;i&gt;contenido&lt;/i&gt; del &lt;i&gt;diseño&lt;/i&gt;.&lt;/li&gt;&lt;br /&gt;

&lt;li&gt;&lt;b&gt;Fácil de utilizar&lt;/b&gt;: permite al diseñador reducir sustancialmente la carga de trabajo al diseñar un sitio web&lt;/li&gt;&lt;br /&gt;

&lt;li&gt;&lt;b&gt;Reutilización en múltiples páginas&lt;/b&gt;: cuando la &lt;i&gt;hoja de estilo (CSS)&lt;/i&gt; recoge aspectos comunes a varias páginas, puede ser reutilizada en cualquier sección del &lt;i&gt;site&lt;/i&gt; aprovechando dichos efectos ya definidos.&lt;br /&gt;

&lt;div class=&quot;cita&quot;&gt;&lt;a href=&quot;http://camaleoncss.com/&quot;&gt;&lt;b&gt;http://camaleonscss.com/&lt;/b&gt;&lt;/a&gt; es una web con el mismo contenido pero con diferentes ficheros &lt;i&gt;CSS&lt;/i&gt;, haciendo clic en sus enlaces podemos ver distintos diseños y maneras de presentar la misma información en pantalla.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a name=&quot;regla&quot;&gt;&lt;strong&gt;Reglas básicas de CSS&lt;/strong&gt;&lt;/a&gt; (I): Con &lt;i&gt;CSS&lt;/i&gt; podemos aplicar reglas de estilo a un tipo determinado de elementos dentro del documento HTML, así se puede conseguir el mismo efecto que usando el marcado tradicional, por ejemplo, lo que en HTML sería: &lt;br /&gt;

 &lt;div class=&quot;codigo&quot;&gt;&lt;strong&gt;&amp;lt;h2&amp;gt;&amp;lt;font color=&quot;red&quot;&amp;gt;texto del elemento&amp;lt;/font&amp;gt;&amp;lt;h2&amp;gt;&lt;/strong&gt;&lt;/div&gt;

&lt;p&gt;en el CSS, para todos los títulos del tipo &amp;lt;h2&amp;gt; sería:&lt;/p&gt;

 &lt;div class=&quot;codigo&quot;&gt;H2 {&lt;br /&gt;
 color: red;&lt;br /&gt;
 }&lt;/div&gt;&lt;/li&gt;

&lt;strong&gt;CSS&lt;/strong&gt; (II): a la expresión &quot;&lt;code&gt;H2{color: red;}&lt;/code&gt;&quot; se le denomina &quot;&lt;strong&gt;regla&lt;/strong&gt;&quot;, y esta que hemos definido en concreto, colorea de rojo los elementos del tipo &#39;&lt;strong&gt;h2&lt;/strong&gt;&#39;.&lt;br /&gt;

Cada regla tiene dos partes: &lt;strong&gt;selector&lt;/strong&gt; &quot;&lt;code&gt;H2&lt;/code&gt;&quot;, &lt;strong&gt;declaración&lt;/strong&gt; &quot;&lt;code&gt;{color: red; }&lt;/code&gt;&quot;, y dentro de la &lt;strong&gt;declaración&lt;/strong&gt; tenemos la &lt;strong&gt;propiedad&lt;/strong&gt; &quot;&lt;code&gt;color&lt;/code&gt;&quot; y el &lt;strong&gt;valor&lt;/strong&gt; &quot;&lt;code&gt;rojo&lt;/code&gt;&quot;...&lt;br /&gt;

 &lt;p align=&quot;center&quot;&gt;&lt;img align=&quot;center&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg64MW6XF6YzKG3mEBmSrPSdwx2e28cgqYwj1zvh_fZCoO8sJyU1Bhk6_VECLH2tg1KJSwhB3N4PhyywuSHTLiZJNW0I4WhoHH-YKEKmFLJIL-OgOoWnkg_0GDp4BavAjiT1yzmk0jYZe4/&quot;/&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Para invocar las reglas CSS desde un archivo HTML&lt;/strong&gt;, y que estas reglas hagan efecto en los elemento del fichero HTML al visualizarlo desde un navegador web, hay que hacer una llamada al archivo CSS desde el HTML, esto se hace entre las etiquetas &lt;strong&gt;&amp;lt;head&amp;gt;&lt;/strong&gt; y &lt;strong&gt;&amp;lt;/head&amp;gt;&lt;/strong&gt; del fichero HTML, y la orden para que haga efecto es:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;nombre-hoja-estilo.css&quot;&amp;gt;&lt;/div&gt;

&lt;li&gt;&lt;strong&gt;Definición de &lt;a name=&quot;clase&quot;&gt;&lt;em&gt;clases&lt;/em&gt;&lt;/a&gt; dentro del &lt;i&gt;CSS&lt;/i&gt;&lt;/strong&gt;: se hace igual que una &lt;strong&gt;regla&lt;/strong&gt; pero con un punto delante:

&lt;div class=&quot;codigo&quot;&gt;.nombre {&lt;br /&gt;
color: red;&lt;br /&gt;
}&lt;/div&gt;

&lt;p&gt;así se ha definido la clase &quot;&lt;strong&gt;nombre&lt;/strong&gt;&quot; con la &lt;strong&gt;propiedad&lt;/strong&gt; &quot;&lt;em&gt;color&lt;/em&gt;&quot; y el &lt;strong&gt;valor&lt;/strong&gt; &quot;&lt;em&gt;rojo&lt;/em&gt;&quot;. Para invocarla desde el fichero html:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;p class=&quot;nombre&quot;&amp;gt; ... ... &amp;lt;/p&amp;gt;&lt;/div&gt;
&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Definición de &lt;a name=&quot;identificador&quot;&gt;&lt;em&gt;ID&lt;/em&gt;&lt;/a&gt; (identificadores) dentro del &lt;i&gt;CSS&lt;/i&gt;&lt;/b&gt;: se hace de forma parecida a las clases pero se pone delante una almoadilla &lt;b&gt;#&lt;/b&gt; en lugar de un punto:

&lt;div class=&quot;codigo&quot;&gt;#nombre {&lt;br /&gt;
font-size: 16px;&lt;br /&gt;
font-weight: bold;&lt;br /&gt;
}&lt;/div&gt;

&lt;p&gt;se ha definido el &lt;strong&gt;ID&lt;/strong&gt; &quot;&lt;strong&gt;nombre&lt;/strong&gt;&quot; con la propiedad de tamaño de fuente de 16 píxeles y en negrita. Para invocar este ID desde el fichero HTML:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;p id=&quot;nombre&quot;&amp;gt; ... ... &amp;lt;/p&amp;gt;&lt;/div&gt;

&lt;p&gt;Los &lt;strong&gt;ID&lt;/strong&gt; son más empleados que las &lt;strong&gt;reglas&lt;/strong&gt; para trabajar con lenguajes de programación como &lt;a href=&quot;http://es.wikipedia.org/wiki/Java&quot;&gt;Java&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;h2&gt;Pseudo-clases o &lt;a href=&quot;http://miguelsantirso.es/2008/09/cinco-cosas-avanzadas-que-debes-saber-sobre-css/&quot;&gt;pseudoelementos&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Algunos navegadores web no representan algunos de estos elementos, se pueden aplicar tanto a las &lt;strong&gt;clases&lt;/strong&gt; como a los &lt;strong&gt;ID&lt;/strong&gt; (identificadores), justo debajo de donde se definen los primeros, y comienza con el carácter &#39;&lt;strong&gt;:&lt;/strong&gt;&#39;, la &lt;em&gt;pseudo-clase&lt;/em&gt; o el &lt;em&gt;pseudoelemento&lt;/em&gt; y la &lt;em&gt;propiedad&lt;/em&gt; y su &lt;em&gt;valor&lt;/em&gt;... Un par de ejemplos:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;.diferente {&lt;br /&gt;
color: green;&lt;br /&gt;
text-transform: capitalize;&lt;br /&gt;
}&lt;br /&gt;
:first-letter.diferente{color: #ff00ff}&lt;/div&gt;

&lt;p&gt;En este caso, se asigna a la primera letra (&lt;code&gt;first-letter&lt;/code&gt;) de la &lt;b&gt;clase&lt;/b&gt; &lt;i&gt;diferente&lt;/i&gt; el color &lt;font color=&quot;#ff00ff&quot;&gt;&lt;em&gt;#ff00ff&lt;/em&gt;&lt;/font&gt;.&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;#pollo {&lt;br /&gt;
font-size: 16px;&lt;br /&gt;
font-weight: bold;&lt;br /&gt;
color: navy;&lt;br /&gt;
}&lt;br /&gt;
:first-letter#pollo{color: #ff0000;}&lt;/div&gt;

&lt;p&gt;En este otro caso se aplica a la primera letra de el &lt;strong&gt;ID&lt;/strong&gt; &lt;em&gt;pollo&lt;/em&gt; el color &lt;font color=&quot;#ff0000&quot;&gt;&lt;em&gt;#ff0000&lt;/em&gt;&lt;/font&gt;.&lt;/p&gt;

&lt;hr /&gt;

&lt;h2&gt;Aplicar las mismas reglas a varias clases o elementos&lt;/h2&gt;

&lt;p&gt;La utilidad de esto es no repetir código en &lt;em&gt;reglas&lt;/em&gt; de estilo que tienen &lt;em&gt;declaraciones&lt;/em&gt; idénticas, los selectores deben ir separados por &quot;&lt;strong&gt;,&lt;/strong&gt;&quot;, y se procede de la siguiente manera:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&lt;strong&gt;.clase1, h2&lt;/strong&gt; {&lt;br /&gt;
color: green; text-transform: capitalize;&lt;br /&gt;
}&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;El código anterior aplica las mismas reglas a los elementos de la clase &quot;&lt;strong&gt;.clase1&lt;/strong&gt;&quot; y a los elementos &quot;&lt;strong&gt;h2&lt;/strong&gt;&quot; (cabeceras de segundo grado). La clase &lt;strong&gt;.clase1&lt;/strong&gt;&quot; y el elemento &quot;&lt;strong&gt;h2&lt;/strong&gt; pueden estar también declaradas en otra parte del archivo CSS con otras &lt;em&gt;propiedades&lt;/em&gt; y &lt;em&gt;valores&lt;/em&gt; diferentes en sus &lt;em&gt;declaraciones&lt;/em&gt;.&lt;/div&gt;

&lt;hr /&gt;

&lt;h2&gt;Aplicar reglas a determinados elementos HTML dentro de una clase&lt;/h2&gt;

&lt;p&gt;Atención en el &lt;strong&gt;selector&lt;/strong&gt; de la regla, los términos que están separados por espacios y los que están separados por &quot;&lt;strong&gt;,&lt;/strong&gt;&quot;, procedemos así:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&lt;strong&gt;.clase1 p h2, clase2 a&lt;/strong&gt; {&lt;br /&gt;
color: green;&lt;br /&gt;
text-transform: capitalize;&lt;br /&gt;
}&lt;/div&gt;

&lt;div class=&quot;cita&quot;&gt;El código anterior aplica las reglas a los elementos &quot;&lt;strong&gt;p&lt;/strong&gt;&quot; (párrafos de texto) y a los elementos &quot;&lt;strong&gt;h2&lt;/strong&gt;&quot; (cabeceras de segundo grado) que se encuentren dentro de la clase &quot;&lt;strong&gt;.clase1&lt;/strong&gt;&quot;. Y también aplica las mismas reglas a los elementos &quot;&lt;strong&gt;a&lt;/strong&gt;&quot; (hipervínculos o enlaces) de dentro de la clase &quot;&lt;strong&gt;.clase2&lt;/strong&gt;&quot;.&lt;/div&gt;

&lt;p&gt;En el documento html, también podemos incluir varias &lt;em&gt;reglas&lt;/em&gt; en un mismo elemento de contenido separando los nombres de las clases por espacios:&lt;/p&gt;

&lt;div class=&quot;codigo&quot;&gt;&amp;lt;img src=&quot;url-de-la-imagen&quot; widht=300 height=125 &lt;strong&gt;class=&quot;case1 clase2 ... &quot;&lt;/strong&gt; alt=&quot;texto alternativo&quot; /&amp;gt;&lt;/div&gt;

&lt;hr /&gt;

&lt;p&gt;Y aquí una chuleta, o guía de referencia rápida de CSS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Descarga: &lt;a href=&quot;http://www.box.net/shared/cv2nqhzahp&quot;&gt;Guía de referencia rápida CSS&lt;/a&gt; (pdf)&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/1899753198259191960/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/138-consistencia-en-el-diseno-las-hojas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1899753198259191960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/1899753198259191960'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/138-consistencia-en-el-diseno-las-hojas.html' title='1.3.8 Consistencia en el diseño: las hojas de estilo CSS'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-7364642538244159459</id><published>2010-06-28T17:30:00.004+02:00</published><updated>2010-08-13T00:52:12.293+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="plantillas"/><title type='text'>1.3.7 Consistencia en el diseño: Plantillas</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Una &lt;b&gt;plantilla&lt;/b&gt; es una página pre-desarrollada para crear más páginas con el mismo patrón, diseño o estilo.&lt;/p&gt;

&lt;p&gt;Son elementos del lenguaje HTML, que permiten definir y guardar características concretas para la presentación de textos y contenidos en la pantalla, que pueden aplicarse en cualquier parte del documento. Todo esto se verá en las próximas entradas de este blog.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/7364642538244159459/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/137-consistencia-en-el-diseno.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7364642538244159459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7364642538244159459'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/137-consistencia-en-el-diseno.html' title='1.3.7 Consistencia en el diseño: Plantillas'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-7525399724940667732</id><published>2010-06-28T17:00:00.009+02:00</published><updated>2010-08-14T21:24:49.526+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="heatmap"/><category scheme="http://www.blogger.com/atom/ns#" term="mapa calor"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="resolucion"/><title type='text'>1.3.6 Diseño independiente de la resolución</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Se debe diseñar para todas las resoluciones de pantalla:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Decidir resolución mínima&lt;/b&gt;: el acceso a sitios de Internet con resoluciones de 640x480 es de un 0,5%. En la actualidad se suele tomar como resolución mínima 800x600 ó 1024x768. Se puede diseñar para varias resoluciones.&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Diseñar para esta resolución&lt;/b&gt;: o sea, para la resolución decidida en el punto anterior... (&lt;i&gt;ya se que suena raro este punto, pero fue así en clase&lt;/i&gt;).&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Al convertir en HTML, trabajar con porcentajes&lt;/b&gt;: ancho de 980 píxeles y las definiciones de otros elementos en porcentajes para aprovechar todo el ancho posible de la pantalla (&lt;i&gt;980 píxeles me parece poco en estos momentos&lt;/i&gt;).&lt;/li&gt;

&lt;li&gt;&lt;b&gt;Probar el sitio web con diferentes resoluciones y en diferentes navegadores&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Heatmap&lt;/h2&gt;

&lt;p&gt;Un &lt;a href=&quot;http://www.techtear.com/2007/10/31/heatmaps-conoce-el-comportamiento-de-los-visitantes-de-tu-sitio/&quot;&gt;&lt;strong&gt;heatmap&lt;/strong&gt;&lt;/a&gt; es una herramienta que genera un &lt;strong&gt;mapa de calor&lt;/strong&gt; de nuestro sitio web, esto es un gráfico que &lt;strong&gt;muestra donde hacen clic los visitantes&lt;/strong&gt; de nuestro sitio web, o dicho de otro modo, que partes del sitio web les &lt;i&gt;atrae&lt;/i&gt; más.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.labsmedia.com/clickheat/index.html&quot;&gt;ClickHeat&lt;/a&gt;&lt;/li&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;b&gt;user:&lt;/b&gt; demo&lt;/li&gt;
 &lt;li&gt;&lt;b&gt;contraseña:&lt;/b&gt; demo&lt;/li&gt;
 &lt;/ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.crazyegg.com/&quot;&gt;CrazyEgg&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/7525399724940667732/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/136-diseno-independiente-de-la.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7525399724940667732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/7525399724940667732'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/136-diseno-independiente-de-la.html' title='1.3.6 Diseño independiente de la resolución'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-8795848673128365839</id><published>2010-06-28T16:30:00.010+02:00</published><updated>2010-08-14T21:34:04.424+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="distribucion web"/><category scheme="http://www.blogger.com/atom/ns#" term="maquetacion"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><title type='text'>1.3.5 Espacio disponible y distribución del documento</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Hace referencia a la &lt;strong&gt;distribución de los elementos de las páginas&lt;/strong&gt; de nuestro sitio web -sin entrar de muchos más detalles-.&lt;/p&gt;

&lt;h2&gt;Estructura&lt;/h2&gt;

&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYw65XXsfY464IciGIz6_b-XQ1ABM2u4wuIyU5ZADldg2So8JhIEO2WJMKBWrrYOeiqlPjjrhri-aT-sv2MTulQ5nqnIIvFCVuYz13DrBGB20O4PWFmbgH7eoOAcP6OVT8pmSua-jOeEs/&quot; alt=&quot;Estructura u organización de la página&quot; /&gt;&lt;br /&gt;

imagen &quot;robada&quot; de &lt;a href=&quot;http://es.kioskea.net/contents/web/webdesign.php3&quot;&gt;es.kiosquea.net&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Cabezal&lt;/b&gt; o cabecera (&quot;área de titular&quot;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Menú de navegación superior&lt;/b&gt; &quot;&lt;em&gt;headbar&lt;/em&gt;&quot; (&quot;titular de navegación&quot;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Menú de navegación lateral&lt;/b&gt; &quot;&lt;em&gt;sidebar&lt;/em&gt;&quot; (&quot;menú&quot;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Contenido&lt;/b&gt; (&quot;cuerpo&quot;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Pié&lt;/b&gt; (&quot;final de la página&quot;)&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/8795848673128365839/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/135-espacio-disponible-y-distribucion.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/8795848673128365839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/8795848673128365839'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/135-espacio-disponible-y-distribucion.html' title='1.3.5 Espacio disponible y distribución del documento'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7337587047101728523.post-768499226173956827</id><published>2010-06-28T16:00:00.016+02:00</published><updated>2010-09-27T17:00:17.828+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mapa"/><category scheme="http://www.blogger.com/atom/ns#" term="mapa sitio web"/><category scheme="http://www.blogger.com/atom/ns#" term="modulo 1"/><category scheme="http://www.blogger.com/atom/ns#" term="robots buscadores"/><category scheme="http://www.blogger.com/atom/ns#" term="sitemap"/><title type='text'>1.3.4 Mapa del sitio web (ii)</title><content type='html'>&lt;p&gt;&lt;img align=&quot;right&quot; hspace=&quot;5&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/&quot; /&gt;Continuación desde la entrada anterior: &quot;&lt;a href=&quot;http://designweb-coepa.blogspot.com/2010/06/124-mapa-del-sitio-web-i.html&quot;&gt;1.2.4 Mapa del sitio web (i)&lt;/a&gt;&quot;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;El archivo robots.txt&lt;/strong&gt; Es un archivo de texto (&lt;a target=&quot;_blank&quot; href=&quot;http://es.wikipedia.org/wiki/UTF-8&quot;&gt;UTF-8&lt;/a&gt;) que dicta unas directrices para que todos los &lt;em&gt;bots&lt;/em&gt; de los buscadores puedan:&lt;/li&gt;
 &lt;ul&gt;
 &lt;li&gt;Impedir acceso a &lt;i&gt;robots&lt;/i&gt; determinados&lt;/li&gt;
 &lt;li&gt;Reducir sobrecarga del servidor... al poder indicar al bot a que archivos debe acceder y a cuales no&lt;/li&gt;
 &lt;li&gt;Prohibir zonas&lt;/li&gt;
 &lt;li&gt;Eliminar contenido duplicado&lt;/li&gt;
 &lt;li&gt;Fijar mapas del sitio&lt;/li&gt;
 &lt;/ul&gt;

&lt;div class=&quot;cita&quot;&gt;El archivo &lt;span class=&quot;rojo&quot;&gt;robots.txt&lt;/span&gt; es el &lt;strong&gt;primer archivo&lt;/strong&gt; que visitará los robots de los motores de búsqueda y su &lt;strong&gt;importancia esencial&lt;/strong&gt;.&lt;/div&gt;
&lt;/ul&gt;

&lt;p&gt;En &lt;strong&gt;User-agent&lt;/strong&gt; (&quot;nombre del robot&quot;) para especificar nombre del robot, se puede emplear &lt;strong&gt;User-agent:all&lt;/strong&gt; ó &lt;strong&gt;User-agent:*&lt;/strong&gt; para todos los robots; el robot de Google es &quot;&lt;strong&gt;googlebot&lt;/strong&gt;&quot;. Después se ponen las rutas donde queremos prohibir que acceda el /los robots&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Disallow:/&lt;/strong&gt; prohíbe la entrada a todo el sitio.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Disallow:/foro/&lt;/strong&gt; prohíbe la entrada a el directorio &quot;&lt;em&gt;foro&lt;/em&gt;&quot; del site.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Disallow:&lt;/strong&gt; permite la entrada a todo el sitio.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Allow:/&lt;/strong&gt; permite la entrada a todo el sitio.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sitemap:url_del_sitemap&lt;/strong&gt; especifica la ubicación de donde está el &lt;em&gt;sitemap&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://designweb-coepa.blogspot.com/feeds/768499226173956827/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/124-mapa-del-sitio-web-ii.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/768499226173956827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7337587047101728523/posts/default/768499226173956827'/><link rel='alternate' type='text/html' href='http://designweb-coepa.blogspot.com/2010/06/124-mapa-del-sitio-web-ii.html' title='1.3.4 Mapa del sitio web (ii)'/><author><name>wyspru</name><uri>http://www.blogger.com/profile/06076264157651420285</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqvwVIGNpCYaij4HfQUl6TKnhc_pQsk9D6d8qGFmfMh38dGcswf4SO_2PzwnZHONZ23z69uJ9Ph7CoBX2YuCFqlbRfIP12Ka4Epxl6qIX2xA8lBLAKrSs_zgpijByssyIaTJLFuw4x-3Uu/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry></feed>