Ever wonder how HTML color codes are put together? For the beginner, it can look like lots of numbers and letters that make no sense. In reality, HTML color codes are written that way for a specific reason that we'll look at in this article.
Introduction to the Hexadecimal System
In mathematics, the hexadecimal or simply hex is a numeral system with a base of 16 usually written using the symbols 0-9 and A-F. The numbers 0-9 have the same value as in the decimal system but starting with the letter A, the value keeps going up one up to the value of 16. A is worth 10, B is worth 11 and so forth until you get to F which is worth 16.
How the HTML Color Codes are put together
HTML Color codes are composed of six hex numbers that represent a possible 16.7 million color combinations. The hex color codes are built on the RGB color model. R stands for red, G for green, and B for blue. With your typical html code that looks like this: #FFFFFF it breaks down as follows. The first two hex digits #FFFFFF represent 'red'. The second set of two hex digits #FFFFFF represent the color green. The third and final set of two hex digits #FFFFFF represent the color blue.
A brief overview of the RGB model
The RGB color model, like the HTML color model can represent a total of 16.7 million colors. By varying the amoung of red, green, and blue, one can come up with any of 16.7 million colors. Each RGB value is represented by a number from 0 to 255. So a set of RGB values for the color white for instance, would look like this: 255, 255, 255.
Putting HTML and RGB Together
We've already established the hex numeral system with it's number range between 0 to 16. Now, when you combine two hex numbers, you can represent any number between 0 and 255. As you can see, RGB and HTML color codes represent the same color model.
Websafe Color Palette
Years ago, monitors could only display 256 colors. These monitors were still popular when HTML was first put together. As such, it was necessary to put together a list of colors that web designers could be sure any given monitor could properly display. Web safe colors are the result. The websafe color palette is made up of 216 colors.
It is always good practice to pick standard colors across the board, but it is no longer absolutely necessary to stick with web safe colors. Doing so now is more for purposes of holding to standard than it is for necessity. One exception to this rule may be developing websites for cellphones and PDA's. Having said that, these devices are now surpassing this barrier as well.
#FFFFFF represents the color white. #000000 represents the color black with every other color in between. I hope you now have a much better idea of why HTML color codes are look the way they do.
Joe Duchesne is the president of Yowling.com. They specializes in business web hosting and also offers you the ability to design a website online using their easy to use ecommerce website builder. Reprint freely as long as you provide a keyword rich clickable link back to our website.
one time home cleaning Highland Park ..A long, long time ago? In a galaxy far, far... Read More
Creating your web site can be a tricky process. Choosing... Read More
There are two important reasons to build your website from... Read More
(1) Create a Direct Response Website, with the minimum number... Read More
Sooner or later every small or medium business owner realizes... Read More
You've designed your logo, and you're ready to print your... Read More
I get the occasional web design lead from my website.... Read More
Chris, a new consulting client, asked me to help him... Read More
Since I'm a web designer, I have a tendency to... Read More
In this era of ultra-sophisticated internet marketing and web design,... Read More
If you were like me and you have just started... Read More
The most important person that you need to please when... Read More
There are several graphic software packages available to help you... Read More
There are several very good reasons why you should consider... Read More
Unarguably, the most important part of your website is content.... Read More
If you have a business, big or small you may... Read More
If you have a website, you want your visitors to... Read More
FACT: 30 to 60% of visitors tend to drop off... Read More
Your web site should always adhere to standards!A professional web... Read More
If your are a new web designer, you may face... Read More
Before you start worrying about marketing your website on the... Read More
If someone doesn't know you personally, will they trust you... Read More
Just what is web copy? Some people think that web... Read More
A highly effective website will always reflect its highly effective... Read More
The effective design is this one, which is maximum simplified,... Read More
licensed cleaning services Park Ridge ..If your website is falling through the cracks, the chances... Read More
This article is the result of a conversation I had... Read More
Any design on a web application involves the effective input... Read More
CNN.com's designers have gone out of their way to make... Read More
Sin #5Poor Spelling And GrammarWe all make mistakes when we... Read More
Flash is a powerful technology that can help you create... Read More
Your website is your tool for showing the online community... Read More
We've all seen and read product testimonials. They're a very... Read More
In my last article entitled, Maximizing The True Value Of... Read More
If you were like me and you have just started... Read More
Tips to brand your websiteInclude your logo in all pages.... Read More
A "template" is simply a design format which you can... Read More
Your web site should always adhere to standards!A professional web... Read More
As part of your event planning you should seriously consider... Read More
Don't just put your slogan in the title tag when... Read More
Does website design make a difference in how long people... Read More
Every action has a beginning phase where you launch your... Read More
When your web site sells more than a dozen items,... Read More
Designing your website means you have to be creative, plan... Read More
I once created a notepad-like editor. It is possible with... Read More
An "include" file is a piece of code that can... Read More
If your are a new web designer, you may face... Read More
Many people today are tired of the Microsoft software that... Read More
Let's face it; the line from A Field of Dreams... Read More
With an increasing number of employment portals emerging, it is... Read More
Web Design |