HTML CSS Reference/HTML Attributes Reference/bgcolor

Материал из Web эксперт
Перейти к: навигация, поиск

"bgcolor" Example

   <source lang="html4strict">
   

<HTML> <head> <Title>Example For bgcolor</Title> </head> <BODY>

<col span="2" bgcolor="blue"> <col bgcolor="green">
table cell

</body> </BODY> </HTML>


     </source>
   
  


bgcolor is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<body> <col> | | |<colgroup> <marquee> |

| | <tbody> | | | | +----------------+--------------------------------------------------------------+ </source>

"bgcolor" Syntax and Note

   <source lang="html4strict">

Note:

This attribute defines the background color. Its value is either a color name or a hexadecimal color value using the "#RRGGBB" method.

Syntax:

<element bgcolor="value"> . . . </element>


</source>
<tfoot> | | | <thead> | | |