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.
professional maid services Deerfield ..Many times I've seen a web site undergo a revision... Read More
A picture is worth a thousand words.And it still is... Read More
Before deciding on which web design company to choose, you... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
Everyday we hear that another company goes out of business.When... Read More
For online businesses with their main goal of selling products,... Read More
The concept of web designing based on the nature and... Read More
The first step to starting any Internet business is conducting... Read More
Does your website make you any money? Does it SAVE... Read More
If you have a web site to which people pay... Read More
Your web site has been up for a few months... Read More
One of the simplest things you can do to give... Read More
Every action has a beginning phase where you launch your... Read More
Don't just put your slogan in the title tag when... Read More
Unless you are an inventor, most likely you are selling... Read More
Hire a designer or a programmer for your website is... Read More
You're all ready to get started creating your web presence... Read More
On the internet we don't deal with face to face... Read More
Content is king. Without content your website is an empty... Read More
Part one of this article is available at ... Read More
Graphics are fun, but if you put in too many... Read More
Let me repeat that.."The technology may change, but human nature... Read More
You have identified that to have an internet prescence would... Read More
Building a website that is exactly what you want and... Read More
Are you thinking that it is about time your small... Read More
quick home cleaning Lake Forest ..Building your first website can be very frustrating. It looks... Read More
7. Create high quality content - make clear points with... Read More
So, what's in a website design anyway? And, how do... Read More
If one more business owner tells me their website sucks... Read More
Are you serious about get this website done fast and... Read More
Whether a business has just got off the ground or... Read More
Ever browse across a website that took ten million years... Read More
In the early years of the internet the actual design... Read More
In this article we will be looking at why you... Read More
Home-based businesses need a strong web presence to combat the... Read More
This may comes as a surprise to you but, if... Read More
A picture is worth a thousand words.And it still is... Read More
Your business website tells a lot about your company. A... Read More
Should Generating Revenue From A Website Be The Prime Motivator?... Read More
1. Repackage your web site content in to different products... Read More
Have you ever walked pass a shop that, for some... Read More
Do use a consistent look and feel Your site should... Read More
With so many new websites going up, it is hard... Read More
If you've a website but not making a lot of... Read More
Here are 10 dynamic website advertising tactics to super-charge your... Read More
Have you put a lot of effort, time, and money... Read More
CNN.com's designers have gone out of their way to make... Read More
The title tags of your web pages are more important... Read More
So you're on the computer, as usual. Your eyes are... Read More
So your web site's online and you've got high rankings... Read More
Web Design |