Estructura de tablas
<table>
<thead> Encabezado de la tabla
<th> Encabezado de la tabla </th>
</thead>
<tbody> Cuerpo de la tabla
<tr>
<td> LLamaremos a los elementos de fila en fila, no de columna en columna </td>
</tr>
</tbody>
<tfoot> Pie de la tabla </tfoot>
</table>
<h1>TABLA DE EJEMPLO</h1>
<table>
<thead>
<tr>
<th>Numero de alumnos y alumnas por curso</th>
</tr>
<tr>
<th>Clase</th>
<th>Alumnos</th>
<th>Alumnas</th>
</tr>
</thead>
<tbody>
<tr>
<td>1 DAM</td>
<td>28</td>
<td>2</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Fuente: Secretario</td>
</tr>
</tfoot>
</table>
<br>
<h2>Combinando celdas</h2>
<h1>TABLA DE EJEMPLO COMBINADA</h1>
<table>
<thead>
<tr>
<th colspan="3">Numero de alumnos y alumnas por curso</th>
</tr>
<tr>
<th>Clase</th>
<th>Alumnos</th>
<th>Alumnas</th>
</tr>
</thead>
<tbody>
<tr>
<td>1 DAM</td>
<td>28</td>
<td>2</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">Fuente: Secretario</td>
</tr>
</tfoot>
</table>
</body>
</html>
Que se verían así:
0 comentarios:
Publicar un comentario