El elemento <col>
El elemento <col> se usa para especificar el tamaño por defecto
de la columna para las tablas. El elemento sólo requiere un comando de apertura
y no tiene contenido. El elemento no se renderiza. Ejemplo:
<html>
<head>
<title>El elemento col</title>
</head>
<body>
<table
border="1">
<col
width="20"
style="text-align: center; background-color: #dcdcdc;">
<col
width="200">
<col
width="120">
<col
width="80"
style="text-align: center;">
<tr>
<td>id</td>
<td>Descripción</td>
<td>Tipo</td>
<td>Orden</td>
</tr>
<tr>
<td>1</td>
<td>Portátil</td>
<td>DELL</td>
<td>1.0</td>
</tr>
<tr>
<td>2</td>
<td>Portátil</td>
<td>Sony</td>
<td>1.1</td>
</tr>
<tr>
<td>3</td>
<td>Portátil</td>
<td>HP</td>
<td>1.2</td>
</tr>
</table>
</body>
</html>
|