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.
efficient cleaning crew Lake Forest ..Why is the quality of your text layout and design... Read More
Any design on a web application involves the effective input... Read More
One of the most popular methods of traffic generation is... Read More
We have all seen websites showcasing their testimonials either spread... Read More
Many websites make the mistake of being all flash and... Read More
You just created a new web site but want to... Read More
This article is the result of a conversation I had... Read More
Where does a person start when setting up a website?... Read More
Learning how to convert visitors to your web site into... Read More
Choosing the right typeface for your website copy is important,... Read More
What Will My Site Do?This is the first of eight... Read More
~A man [woman] is a success if he [she] gets... Read More
Getting a customer is not easy.Getting a visitor to decide... Read More
I want you to imagine a lemon. In your mind's... Read More
All websites have a homepage. It is the most important... Read More
A long, long time ago? In a galaxy far, far... Read More
If you are designing a web site for which the... Read More
The most popular method to build webpages today is to... Read More
One visit does not make a sale. Be sure to... Read More
Have you ever been to site with so much ad... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
Color is everywhere and conveys a message even if we... Read More
So you're on the computer, as usual. Your eyes are... Read More
One of the simplest things you can do to give... Read More
Some wise human once said "Learn from the mistakes of... Read More
green cleaning service Deerfield ..As a graphic designer, you are sitting on a gold... Read More
This may comes as a surprise to you but, if... Read More
Every action has a beginning phase where you launch your... Read More
Being a writer, when I was asked to do some... Read More
There are many companies who build websites, all of which... Read More
Writing for your web site is not the same as... Read More
The problem with designing your site as a graphic, is... Read More
When designing elements for your webpage, you will often be... Read More
Well, a logo for your business. Why is it important?... Read More
Do your web pages, sales letters or personal presentations include... Read More
Setting up a survey on your site is extremely simple... Read More
Don't mess with those links! When you're designing your site,... Read More
You may not bother with html validation or writing simple... Read More
Does website design make a difference in how long people... Read More
To create professional websites is not an easy task by... Read More
Let's face it. Buying products and services from the Internet... Read More
Building your first website can be very frustrating. It looks... Read More
Most NGOs (Non-Governmental Organizations) don't understand these important aspects of... Read More
Web design is a very competitive area and there is... Read More
While few companies can boast as we do that our... Read More
The trend today to overuse animation in a website's opening... Read More
Let's look at what your user wants to see at... Read More
Even if you're not an accomplished webmaster you can still... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
7. Create high quality content - make clear points with... Read More
Web Design |