settings
Atributos fundamentales
border_all
border
Define el grosor del borde
border="1"
space_bar
cellpadding
Espacio entre contenido y borde
cellpadding="10"
grid_on
cellspacing
Espacio entre celdas
cellspacing="5"
aspect_ratio
width / height
Dimensiones de la tabla
width="80%"
code
Ejemplo de código
<table border="2" cellpadding="10" cellspacing="5" width="80%">
<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>
visibility
Visualización de atributos
| Producto | Precio | Stock |
|---|---|---|
| Laptop | $999 | 15 |
| Monitor | $299 | 23 |
info
Nota importante
Estos atributos HTML están obsoletos en HTML5. Se recomienda usar propiedades CSS para el estilo de las tablas:
- border → border (CSS)
- cellpadding → padding (CSS)
- cellspacing → border-spacing (CSS)
- width/height → width/height (CSS)