Tablas

Tablas

Se componen de una etiqueta principal <tr></tr> que define las filas y encierra las columnas.

La etiqueta <th></th>  define el encabezado.

La etiqueta <td></td>  define los elementos de la tabla y cada dato que se desea mostrar en las celdas.



<caption>Descripcion o titulo</caption>



<table border=2  bordercolor="blue"   >

<!-- El atributo boder=" " define que se le asignara un border y se le pone el tamaño en este caso 2


<thead bgcolor="pink">
<tr >
<th >Encabezado1</th> <th>Encabezado2</th> <th>Encabezado3</th>
</tr>
</thead>


<tbody  >
<tr >
<td  >Dato1</td> <td></td> <td>Dato3</td>
</tr>

<tr >
<td >Dato1.1</td> <td>Dato2.1</td> <td>Dato3.1</td>
</tr>

</tbody>

<tfoot>
<tr>

<td></td> <td>Dato3.1</td> <td></td>

</tr>
</tfoot>

</table>


Encabezado1Encabezado2Encabezado3
Dato1Dato3
Dato1.1Dato2.1Dato3.1
Dato3.1






Comentarios