Activity Stream
48,167 MEMBERS
62471 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com

    Default HTML Color - bgcolor Guide

    The bgcolor attribute is used to control the background of an HTML elmement, specifically page and table backgrounds. Bgcolor can be placed within several of the HTML tags. However, we suggest you only use it for your page's main background (<body>) and in tables. For additional background styling. The HTML to change the background color is simple:

    Syntax

    <TAGNAME bgcolor="value"> Quick and dirty, here is how to change the background of your web page. Just use the bgcolor attribute in the <body> tag and you are golden.

    HTML Code:

    <body bgcolor="Silver"> <p>We set the background...</p> </body>


    Paragraph Bgcolor:




    Adding Color to Your Tables


    This example shows how to add a background color for an entire table using generic values of color.

    HTML Code:

    <table bgcolor="lime" border="1"><tr> <td>A lime colored table background using color names.</td> </tr></table> <table bgcolor="#ff0000" border="1"><tr> <td>A red colored table background using hexadecimal values "#FF0000".</td> </tr></table> <table bgcolor="rgb(0, 0, 255)" border="1"><tr> <td>A blue colored table background using RGB values "rgb(0, 0, 255)".</td> </tr></table>


    Table Bgcolors:




    Adding Color to Table Rows & Columns

    Here's a few common examples of "bgcolor" and font color

    HTML Code:


    <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>


    Alternating Colors:




    Background Color and Font Color Together!


    Check out this "Scoreboard" we made with the use of font color and bgcolor!

    HTML Code:

    <table bgcolor="#000000"> <tr><td bgcolor="#009900"> <font color="#FFFF00" align="right">Green Bay</font></td> <td><font color="#FFFFFF">13</font></td></tr> <tr><td bgcolor="#0000FF"> <font color="#DDDDDD" align="right">New England</font></td> <td><font color="#FFFFFF">27</font></td></tr> </table>
    Scoreboard:



    HTML Code:


    <table bgcolor="#777777"> <tr><td> <p><font face="Monotype Corsiva, Verdana" size="4" color="#00FF00"> This paragraph tag has... </font></p> </td></tr> </table>


    Colored Paragraph:





    Regards

    Source
    Bharat Reviewed by Bharat on . HTML Color - bgcolor Guide The bgcolor attribute is used to control the background of an HTML elmement, specifically page and table backgrounds. Bgcolor can be placed within several of the HTML tags. However, we suggest you only use it for your page's main background (<body>) and in tables. For additional background styling. The HTML to change the background color is simple: Syntax <TAGNAME bgcolor="value"> Quick and dirty, here is how to change the background of your web page. Just use the bgcolor Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    leakformation.com musictooth.com
    I knew that

    Anyways, Thanks

  4.     
    #3
    Respected Member
    Bharat's Avatar
    Website's:
    ShineServers.Com Pickadedi.com
    Quote Originally Posted by .nItIsH. View Post
    I knew that

    Anyways, Thanks
    Nice but some of members don't know it , so i thought it would be useful

  5.     
    #4
    Member
    Website's:
    iFunMaza.com
    good for beginers
    Cheers bharat

    FB - http://www.facebook.com/IfunMaza
    Twitter - twitter.com/#!/iFunMaza

  6.     
    #5
    Member
    Website's:
    GFXWebHosting.com WarezJobs.com
    this is good... might be helpful to me some day.

  7.     
    #6
    Banned
    Website's:
    leakformation.com musictooth.com
    Quote Originally Posted by Bharat View Post
    Nice but some of members don't know it , so i thought it would be useful
    I agree

  8.     
    #7
    Member
    BGColor was deprecated in the W3C HTML 4.0 Specification.

    Newer Web sites and web applications use CSS (Cascading Style Sheets) to render the same thing, as follows:

    body {
    background-color : #ffffff;
    }
    http://stackoverflow.com/questions/3...to-use-instead

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Guide] Warez Starter Guide For *n00bs* :D
    By CyberAff in forum Tutorials and Guides
    Replies: 19
    Last Post: 14th Nov 2012, 03:01 PM
  2. which color?
    By pankaj0010 in forum Technical Help Desk Support
    Replies: 5
    Last Post: 13th Apr 2011, 01:20 PM
  3. Trojoan.Html.Iframe.I [Guide and help]
    By sunnyx12x21x in forum General Discussion
    Replies: 0
    Last Post: 14th Oct 2010, 04:58 PM
  4. Replies: 8
    Last Post: 21st Jul 2010, 06:13 PM
  5. [HTML] How To Change Font Color + Bold
    By Rapid S in forum Web Development Area
    Replies: 15
    Last Post: 15th Jun 2010, 02:12 PM

Tags for this Thread

BE SOCIAL