Basic HTML

 
 
          

Table >> Background >> Color

 

Applying Background Color to Table

Check the figure below:

HTML - Code Description Sample Output
<table bgColor=#336699 width=100 border=1>
<tr>
<td>Head
<tr>
<td height=100>Body
</table>
  • Border = 1
  • Width = 100
  • Background Color = #336699
  • Head
    Body
    <table width=100 border=1>
    <tr>
    <td bgColor=#336699>Head
    <tr>
    <td height=100>Body
    </table>
  • Border = 1
  • Width = 100
  • Background Color = #336699 (applied to first row)
  • Head
    Body

    Table >> Background Table >> Background >> Image