29/09/2014

HTML Bgcolor

The Bgcolor attribute is used to establish the the background color of a HTML paragraph, table or any other content
<"numetag" bgcolor="Value"> This is a model of how the bgcolor attribute will be used within a tag.
Input
<body bgcolor="Silver"> <p>This is the silver bgcolor.</p> </body>
Output

This is the silver bgcolor

Adding bgcolor to the tables
Input
<table> <tr bgcolor="#FFFF00"><td>This Row is Yellow!>/td<</tr> <tr bgcolor="#AAAAAA"><td>This Row is Gray!</td></tr> <tr bgcolor="#FFFF00"><td>This Row is Yellow!</td></tr> <tr bgcolor="#AAAAAA"><td>This Row is Gray!</td></tr> <tr bgcolor="#FFFF00"><td<This Row is Yellow!</td></tr> <tr bgcolor="#AAAAAA"><td>This Row is Gray!</td></tr> </table>
Output
This Row is Yellow!
This Row is Gray!
This Row is Yellow!
This Row is Gray!
This Row is Yellow!
This Row is Gray!

Font and background
Input
<font color="blue"><table bgcolor="#000000"> <tr><td bgcolor="#009900"> <font color="#FFFF00" align="right">Green Bay</font<>/td> <td><font color="#FFFFFF">30</font></td></tr> >tr><td bgcolor="#0000FF"> <font color="#DDDDDD" align="right">New England</font></td> <td><font color="#FFFFFF">11</font></td></tr> </table>
Output
Green Bay 30
New England 11

Paragraph on a gray background
Input
<table bgcolor="#777777"> <tr><td> <p><font face="Monotype Corsiva, Verdana" size="4" color="#00FF00">This paragraph tag has</font></p> </td></tr> </table>
Output
Look at this paragraph