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.
affordable house cleaning Park Ridge ..Whether you're hiring a designer who has created 10 sites... Read More
When considering whether or not to incorporate Flash into your... Read More
For online businesses with their main goal of selling products,... Read More
ActiveX uses an interesting method for enforcing security ... it... Read More
Your web site is like your car. Both are significant... Read More
You have identified that to have an internet prescence would... Read More
In retailing there is a saying that sales are made... Read More
There's no doubt about it - the first page your... Read More
The .htaccess file is a control file located in your... Read More
Public domain gives you a head start creating ebooks, ecourses,... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
You know that I'm always extolling the virtues of an... Read More
If you own a web site or if you are... Read More
FIRST IMPRESSIONS. First impressions often leave lasting impressions. Impressions... Read More
Graphics are fun, but if you put in too many... Read More
If you are designing a web site for which the... Read More
Even after you've managed to bring traffic to your site... Read More
Congratulations! You've got a brand new site and it's doing... Read More
In this article we will be looking at why you... Read More
Physical therapists have unique web presence needs. An effective site... Read More
I'm not a professional web site designer and openly admit... Read More
~A man [woman] is a success if he [she] gets... Read More
Website Design Usability Tips1. Getting to know about audience membersYou... Read More
10 Ways Web Site Text Can Impact Your Reader's Buying... Read More
Ecommerce is just exploding right now on the Net. More... Read More
affordable house cleaning Mundelein ..Back to basics. Forget funky design, good copywriting is the... Read More
If you have a website, you want your visitors to... Read More
Let's face it; the line from A Field of Dreams... Read More
The solution lies in creating a 'Database driven website', through... Read More
Here are a few programs I can't do without. They're... Read More
Don't make a splash!Are you thinking about using a splash... Read More
QUESTION: My business is very small, just me and... Read More
If you've just finished building your new website (or revamping... Read More
Are you using the best colors for your web site?... Read More
Do you have a website? If so, you need an... Read More
Well, a logo for your business. Why is it important?... Read More
You may not bother with html validation or writing simple... Read More
We've all seen and read product testimonials. They're a very... Read More
A few years ago a lot of websites utilized frame... Read More
If you own a web site or if you are... Read More
Creating your own website is actually easy in today's world... Read More
In this article I will give a few tips of... Read More
There are many companies who build websites, all of which... Read More
Your web site is the key to your success on... Read More
Increasing the length of time a visitor is on your... Read More
Does your website make a good first impression? Is the... Read More
As a graphic designer, you are sitting on a gold... Read More
What Will My Site Do?This is the first of eight... Read More
Building a website that is exactly what you want and... Read More
A highly effective website will always reflect its highly effective... Read More
Web Design |