Faça Sua Pesquisa.

quarta-feira, 16 de novembro de 2011

BGCOLOR

Modelo de uso do atributo BGCOLOR
<html>
<head>
<title>Tabelas</title>
</head>
<body>
<h1>CORES NA TABELA</h1><BR>
<table width="300" border="2" align="center" cellspacing="2" cellpadding="2">
<tr>
<td align="center" bgcolor="blue">1</td>
<td align="center" bgcolor="green">2</td>
<td align="center" bgcolor="magenta">3</td>
</tr>
<tr>
<td align="center" bgcolor="red">4</td>
<td align="center" bgcolor="white">4</td>
<td align="center" bgcolor="yellow">5</td>
</tr>
</table>
</body>
</html>
8.4.2 IMAGEM DE FUNDO NAS TABELAS
Semelhante a inserir cores de fundo, é possível colocar imagens com fundo da tabela. Essa
técnica é muito utilizada, e para isso usamos o atributo BACKGROUND. Este atributo pode ser utilizado nas
tags <TABLE>, <TD>, <TH>.

<html>
<head>
<title>Tabelas</title>
</head>
<body>
<h1>IMAGENS NA TABELA</h1><BR>
<table width="300" border="2" align="center" cellspacing="2" cellpadding="2"
background="ft02.gif">
<tr>
<td align="right" valign="bottom"><H2>Modelo de Imagem de Fundo<H2></TD>
</tr>
</table>
</body>
</html>

0 comentários:

Postar um comentário

TecCodigos Copyright © 2011 | Template created by O Pregador | Powered by Blogger