|
|
El elemento <td>
El elemento <td> se usa para especificar una celda en una tabla.
El elemento requiere Tags de apertura y cierre. El contenido del elemento es renderizado.
Ejemplo:
<html>
<head>
<title>El
Elemento td</title>
</head>
<body>
<table
border="1">
<tr>
<td>
Este texto está en el elemento td.
</td>
</tr>
</table>
</body>
</html>
Utilice el atributo style (estilo) para asignarle valores de estilo. Ejemplo:
<html>
<head>
<title>El
Elemento td</title>
</head>
<body>
<table
border="1">
<tr>
<td
style="background-color: #ffff99;">
Este texto está en el elemento td.
</td>
</tr>
</table>
</body>
</html>
|
|