Tablas

Nombre

Apellidos

País

Kiko

Palomares

España

Juan

Hernández

México

Sofía

Martínez

Argentina

<table>

  • Con la etiqueta <table> podemos definir una tabla.

  • Cada fila se define con <tr>.

  • El encabezado de la tabla se define con <th>.

  • Y las celdas se definen con <td>.

  • Dentro de un <td> puede haber cualquier tipo de elemento HTML, textos, imágenes, listas, etc.

<table>
  <tr>
    <th>Nombre</th>
    <th>Apellidos</th>
    <th>País</th>
  </tr>
  <tr>
    <td>Kiko</td>
    <td>Palomares</td>
    <td>España</td>
  </tr>
  <tr>
    <td>Juan</td>
    <td>Hernández</td>
    <td>México</td>
  </tr>
    <tr>
    <td>Sofía</td>
    <td>Martínez</td>
    <td>Argentina</td>
  </tr>
</table>

Suscríbete para seguir leyendo...

Este contenido es gratuito, pero debes estar suscrito a Cuarzo.dev para continuar leyendo.

Already a subscriber?Sign in.Not now

Reply

Avatar

or to participate

Sigue leyendo