code
Sintaxis básica
<table border="1" width="100%">
<tr>
<th>Encabezado</th>
<th>Encabezado</th>
</tr>
<tr>
<td>Dato</td>
<td>Dato</td>
</tr>
</table>
<tr>
<th>Encabezado</th>
<th>Encabezado</th>
</tr>
<tr>
<td>Dato</td>
<td>Dato</td>
</tr>
</table>
settings
Atributos principales
border_all
border: Define el grosor del borde
aspect_ratio
width y height: Dimensiones de la tabla
space_bar
cellpadding: Espacio entre contenido y borde
grid_on
cellspacing: Espacio entre celdas
lightbulb
Función principal
La etiqueta <table> actúa como contenedor principal de todos los elementos de la tabla
code
Ejemplo con atributos
<table border="2" width="80%" cellpadding="10" cellspacing="5">
<tr>
<th>Producto</th>
<th>Precio</th>
</tr>
<tr>
<td>Laptop</td>
<td>$999</td>
</tr>
</table>
<tr>
<th>Producto</th>
<th>Precio</th>
</tr>
<tr>
<td>Laptop</td>
<td>$999</td>
</tr>
</table>