Table of Contents

Desarrollo Web Lección 4 - Tablas

Contenido y Estructura de la Tabla

Objetivo

En esta sección, crearemos una tabla para presentar las estadísticas de la selección colombiana de fútbol. Aprenderá a estructurar una tabla en filas y columnas ya asignar celdas como encabezados.

Configuración

Estructura

Nombre Apellido Nacionalidad Años Posición
David Ospina Ramírez Colombia 33 Portero
<table>

</table>
<table>
  <thead>
    
  </thead>
  <tbody>
    
  </tbody>
</table>
<table>
  <thead>
    <tr>
      <th>Nombre</th>
      <th>Apellido</th>
      <th>Nacionalidad</th>
      <th>Años</th>
      <th>Posición</th>
    </tr>
  </thead>
  <tbody>
    
  </tbody>
</table>
<table>
  <thead>
    <tr>
      <th>Nombre</th>
      <th>Apellido</th>
      <th>Nacionalidad</th>
      <th>Años</th>
      <th>Posición</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>David</td>
      <td>Ospina Ramírez</td>
      <td>Colombia</td>
      <td>33</td>
      <td>Portero</td>
    </tr>
  </tbody>
</tabla>
Nombre Apellido Nacionalidad Años Posición
David Ospina Ramírez Colombia 33 Portero
Carlos Eccehomo Cuesta Figueroa Colombia 22 Defensa
Juan Guillermo Cuadrado Bello Colombia 33 Centrocampista
Radamel Falcao García Zárate Colombia 35 Delantero

Fronteras

td, th {
  border-width: 1px;
  border-style: solid;
}

Codigo Final

Siguiente: Acolchado