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.
full-service cleaning Des Plaines ...This is the second part of a two-part article about... Read More
"Oh, my eyes, my eyes! What an eye sore. Quick,... Read More
To create professional websites is not an easy task by... Read More
Why is the quality of your text layout and design... Read More
Due to the large number of people offering website design... Read More
We will take a look at why your visitors may... Read More
So how do you know when your graphic designer costs... Read More
In this article you will find the parallel between two... Read More
About two years ago, I had a go at commercial... Read More
So you're on the computer, as usual. Your eyes are... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
A search engine robot actually reads the wording on your... Read More
New Web sites are springing up online by the millions.... Read More
Studies done by Jakob Nielson the man touted as the,... Read More
There are lots of websites out there that do little... Read More
I've written about META tags in the past, and I... Read More
The question that I most frequently hear from people is... Read More
Automating your online business is one of the most important... Read More
Conventional Wisdom states you should use Sub-Directories to organize your... Read More
Every now and then, I receive a link exchange request... Read More
Web design is a very competitive area and there is... Read More
A client asked me, at what point do you change... Read More
Your web site should always adhere to standards!A professional web... Read More
This is my second article on maximising web site viewability.... Read More
1. Lack of overall strategy and clear definition of success:Most... Read More
family-safe home cleaners Arlington Heights ...Whether you're hiring a designer who has created 10 sites... Read More
You have an idea for a website and you are... Read More
Your web site is like your car. Both are significant... Read More
Have you ever been to site with so much ad... Read More
You may not bother with html validation or writing simple... Read More
Creating an appealing, functional, and effective Web site is much... Read More
Every day internet marketers are inundated with the latest fad... Read More
Don't knock it; "Keep It Simple, Stupid" is a great... Read More
A search for "web design" on Google returns more than... Read More
Want to know what the worst thing to say on... Read More
I have written before about long sales copy on the... Read More
If there's one thing that most web site developers can... Read More
Here is a quick list of components that make a... Read More
As a webmaster you already know how important it is... Read More
Easy That's how you'd like life to be, right? Especially... Read More
Marketing is not an easy skill to acquire.It requires patience... Read More
We've all surfed the web and seen some awful web... Read More
FIRST IMPRESSIONS. First impressions often leave lasting impressions. Impressions... Read More
In today's world, a web site is virtually mandatory for... Read More
You have only 10 seconds to impress your potential buyer.... Read More
This is my second article on maximising web site viewability.... Read More
Do you have a website? If so, you need an... Read More
In this article we will be looking at why you... Read More
Many web site designers don't design their sites for the... Read More
It is common sense.The more time people spend at your... Read More
Web Design |