Você está na página 1de 1

<html> <head> <title> Prcticas de tablas </title> </head> <body> <table border> <caption> Ejemplo de tabla sencilla</caption> <tr>

<td>fila2-celda1</td> <td>fila2-celda2</td> <td>fila2-celda3</td> </tr> </table> </body> </html> Grosor de los bordes <table border-5> Celdas de cabecera <tr> <th>Columna 1</th> <th>Columna 2</th> <th>Columna 3</th> </tr> Contenido de las celdas <html> <head> <title>Contenido de las celdas</title> </head> <body> <table border-5> <caption> Tabla con diversos elementos </caption> <tr> <th>Dibujo</th> <th>link</th> <th>texto</th> </tr> <td><img src-"hidra.gif" width-60 height-150></td> <td<a href-"Pagina1.html">Pgina principal</a></td> <td>Un texto cualquiera</td> </tr> </table> </body> </html> Alineacin al centro de las celdas Alineacin en sentido vertical <td valign-top>Arriba</td> <td valign-bottom>Abajo</td> Alineacin en sentido horizontal <td align-center>Al centro</td> <td align-right>A la derecha</td> <th align=left> Cabecera a la izquerda</th> Dimensionado de las tablas <table width-60%> Fuerza a la tabla a ocupar el 60% de la ventana <table height=200> Dimensiona la tabla 200 puntos de alto Color de fondo en tablas y celdas <table border bgcolor="#00FF00"> <td bgcolor="#FF0000">

Você também pode gostar