![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/02/2002, 18:22
|
| | Fecha de Ingreso: enero-2002
Mensajes: 196
Antigüedad: 23 años, 1 mes Puntos: 0 | |
Re: Necesito ayuda para optimizar También se puede optimizar el código de las tablas, normalmente la gente escribe el código así.
<pre>
<table border="1" width="100%">
<tr>
<td width="50%" align="center"><b>cabecera</b></td>
<td width="50%" align="center"><b>cabecera</b></td>
</tr>
<tr>
<td width="50%">&nbsp;</td>
<td width="50%">&nbsp;</td>
</tr>
</table>
</pre>
pero eliminando los parámetros "width" redundantes y comvirtiendo las primeras celdas en cabeceras de tabla, se obtiene un mejor código:
<pre> <table border="1" width="100%">
<tr>
<th width="50%" align="center">cabecera</th>
<th width="50%" align="center">cabecera</th>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</pre>
<iframe frameborder=0 scrolling=no width=100% height=85 src="http://www.ecuadorciencia.com/ocio/firma.html"></iframe> |