HTML
  Home arrow HTML arrow Color Composition and HTML
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Color Composition and HTML
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-03-19

    Table of Contents:
  • Color Composition and HTML
  • Possible Colors
  • Similarity in Colors
  • Making Colors Darker or Lighter

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT


    Color Composition and HTML
    (Page 1 of 4 )

    The aim of this article is to make you understand the composition of colors and their relationship to HTML. You will learn how you can see a color and reproduce it using numbers.

    Many HTML elements can be given a color. Some of these elements can each have a foreground color and a background color. In the absence of the foreground color, you will see the background color. The foreground color is simply referred to as color. I assume for this article that you have basic knowledge of HTML and CSS. You do not need to be good in physics in order to understand this article.

    You give an element a color by using Cascading Style Sheets. The code below gives the table cell a green color and a blue background color.


    <html>


    <head>

    <style type="text/css">

    td#td1 {color:red; background-color:blue}

    </style>

    </head>


    <body>

    <table>

    <tbody>

    <tr>

    <td id="td1">

    Text color is red

    </td>

    </tr>

    </tbody>

    </table>

    </body>


    </html>


    There is a nuance here: the color (foreground-color) of a block element (e.g. BODY, DIV, Paragraph) is the color of the text and not another surface area.

    Note how the color and background color have been indicated in the style sheet.

    More HTML Articles
    More By Chrysanthus Forcha


       · You are an HTML coder. Do you want to see a color anywhere and reproduce it. If your...
     

    HTML ARTICLES

    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips
    - Color Composition and HTML
    - HTML Fonts, Styles, and Headers
    - Uses of the New Window Command for Web Sites
    - HTML Working with Images
    - HTML: Working with Special Characters
    - HTML Forms
    - HTML Tables


     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway