Search:The WebTripod   
Lycos.com | Angelfire.com | WhoWhere.com | MailCity.com | Hotwired.com | HotBot.comAll Sites... 
tripod  
Tripod's HTML Tips
  • Overview
  • Basic Page Setup
  • Meta & Header Tags
  • Colors and Body Tags
  • Formatting
  • Links
  • Graphical Elements
  • Text
  • Forms
  • Tables
  • Frames
  • Filenames
  • Sound, Movies and Midis
  • Managing Subdirectories
  • FTP or Uploading Files
  • File and Mime Types
  • Image Maps



  • Send in my tip
    Colors and Body Tags

    4.) Colors for background, text, links and visited links.

    a.) Background Color
    In your HTML tag, you can specify a background color for your page. Background color is an attribute of the BODY tag of your HTML file. To add background color to the body of your page, use BGCOLOR with a numeric value for the color you want. For instance, to create a plain white background you could use this tag: <BODY BGCOLOR="#FFFFFF"> http://www.lynda.com/hex.html, for a full (safe) color spectrum and their binhex codes.

    b.) Text Color
    <body text=?> sets the text color, using name or hex value.

    c.) Link Color
    <body link=?> sets the color of links, using name or hex value.

    d.) Visited Link Color
    <body vlink=?> sets the color of followed links, using name or hex value.

    e.) Active Link Color
    <body alink=?> sets the color a link will turn as a user clicks on it.
    5.) Changing colors
    Colors are specified as 6-digit hexadecinal values (i.e. a six figure letter/number combination). Although some versions of HTML don't officially support hexadecimal colors, most browsers support them anyway. For more information about hexadecimal colors, check out http://www.lynda.com/hex.html .

    6.) Safe palette
    The safe palette is a group of screen display colors that maintains its quality across Windows and Macintosh operating systems when running Web browsers. The safe palette is important because without it, Web pages designed on Windows look bad on the Machintosh and vice versa. The Mac and Windows operating systems each have a "system palette" of 256 colors, but the two system palettes are not the same. The safe palette is the intersection of the Macintosh and Windows system palettes. For more information about the safe palette, you might want to see http://www.lynda.com/hex.html.

    7.) Using HTML with the safe palette:
    a. First, you need to know that all onscreen colors are designated by 6-digit hexadecimal characters, 000000 to FFFFFF, which give RGB values for the color. That is, the leftmost two characters together specify the amount of red, the middle two numbers specify the amount of blue, and the rightmost two numbers specify the amount of green. This designation system holds true for representing any screen color.

    b. The safe palette colors are special because the numbers in each set of two columns that represent R, G, and B, are multiples of three. For instance, 000033 would be a pure, safe blue color, but 000044 would not. The color 336699 would be safe, but 224466 would not. Also, 363636 would not be a safe color, because the two digits in the columns that represent red, green, and blue must be the same.

    c. The hexadecimal values divisible by 3 are C and F. So FFCCFF would be a safe palette color. In general, stick to 0,3,6,9,C, and F as "twins" and you are safe.
    Previous Page       Next Page
      © Tripod Inc. Tripod ® is a registered servicemark of Tripod, Inc., a Lycos Company. All rights reserved.
    Advertise with Tripod