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.
express cleaning service Arlington Heights ..Even if you're not an accomplished webmaster you can still... Read More
No question about it, web design is an art. Finding... Read More
ActiveX uses an interesting method for enforcing security ... it... Read More
A client asked me, at what point do you change... Read More
You've thought about it and you're ready to go. You're... Read More
From my personal experience of around two year as home... Read More
There are two important reasons to build your website from... Read More
I want to give you a free web page template... Read More
Novice and professional graphic designers, we are aware that you... Read More
Projecting a professional image is paramount to your website's success.... Read More
Ecommerce is just exploding right now on the Net. More... Read More
So you've decided to take the plunge. You know that... Read More
1. Repackage your web site content in to different products... Read More
There is no doubt that reprint articles can serve lots... Read More
When you design a website how do you start ?Do... Read More
Home-based businesses need a strong web presence to combat the... Read More
As web designer my self, I have had the unfortunate... Read More
Don't make a splash!Are you thinking about using a splash... Read More
Daily article:One of the most debated subject among webmasters is... Read More
Questions to ask when designing a Web Site for your... Read More
When it comes to marketing your website, you should really... Read More
If you think it's simply a case of who will... Read More
Web usability is perhaps the most important factor in any... Read More
Want to see an excellently constructed website? As a writer... Read More
Designing your website can be a difficult task especially if... Read More
tidy up service Arlington Heights ..Over the course of the last decade, the Internet has... Read More
If you have a web site to which people pay... Read More
You've likely heard of the movie, Jerry Maguire, with its... Read More
I hate to imagine that in your web development project... Read More
(1) Create a Direct Response Website, with the minimum number... Read More
1. Who needs an artists website?Not everyone! If you are... Read More
1. Loading time:try to be below 20kbless number of imagesspecify... Read More
The time it takes to load your site can make... Read More
The concept of web designing based on the nature and... Read More
Want to know what the worst thing to say on... Read More
Are you a student of graphic design? If you have... Read More
If your Web site doesn't project a professional and polished... Read More
An attractive and user-friendly Web site is crucial to attracting... Read More
Thinking about designing your own website? Think again about adding... Read More
Automating your online business is one of the most important... Read More
Unarguably, the most important part of your website is content.... Read More
Learning how to convert visitors to your web site into... Read More
Page ranking by search engines such as Google are not... Read More
Ever wonder how HTML color codes are put together? For... Read More
Nope. You certainly don't need a website.But you don't need... Read More
We've all seen them. Poorly designed web sites that make... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
One visit does not make a sale. Be sure to... Read More
Here's a really simple way... any novice can create a... Read More
By following feng shui guidelines and techniques, you can build... Read More
Web Design |