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.
Airbnb cleaning service Glenview ..Well it is not Elvis, that's for sure.I am a... Read More
Do know your audienceIt's important to know your audience. If... Read More
Well, you've got your product, started your home business, and... Read More
1. Web site File Structure / File NamingMost search engines... Read More
Are you serious about get this website done fast and... Read More
A search engine robot actually reads the wording on your... Read More
It's a fact, Page Not Found, known as a 404... Read More
Web sites that feature products ? especially furniture or other... Read More
Building your first website can be very frustrating. It looks... Read More
Content is the most important part of any website.The Internet... Read More
The most important person that you need to please when... Read More
Regardless whether you manage a small business, charitable organization, or... Read More
To build a website, there are four methods to choose... Read More
Getting traffic to your website is not the only factor... Read More
Surfing the internet is basically an information-fest! From intellectual discussions... Read More
Every day internet marketers are inundated with the latest fad... Read More
You have only 10 seconds to impress your potential buyer.... Read More
If you're not getting a lot of traffic to your... Read More
When considering whether or not to incorporate Flash into your... Read More
Your website is your tool for showing the online community... Read More
I get the occasional web design lead from my website.... Read More
When a prospect lands on your website will he or... Read More
There are plenty of Drupal Modules that you can install... Read More
Any design on a web application involves the effective input... Read More
As my occupation is that of a proofreader, one of... Read More
efficient cleaning crew Highland Park ..Square buttons, round buttons, flashy buttons ? will they match... Read More
Designing your website means you have to be creative, plan... Read More
For online businesses with their main goal of selling products,... Read More
One of the simplest things you can do to give... Read More
There are many companies who build websites, all of which... Read More
How many times have you clicked on a website only... Read More
In this era of ultra-sophisticated internet marketing and web design,... Read More
Colors convey emotions and emotions heavily influence the decision-making process.... Read More
One of the single most important aspects of effective navigation... Read More
1. Loading time:try to be below 20kbless number of imagesspecify... Read More
There can be zillions of reasons why your visitors return... Read More
The icons in an application are the soul of the... Read More
Let's face it. Buying products and services from the Internet... Read More
Web Site Awards are given from other sites to reward... Read More
Your business website tells a lot about your company. A... Read More
The most important person that you need to please when... Read More
Color is everywhere and conveys a message even if we... Read More
Well it is not Elvis, that's for sure.I am a... Read More
If you're not getting a lot of traffic to your... Read More
My mother used to take me along when she visited... Read More
Since you'll spend lots of time and money to create... Read More
With an increasing number of employment portals emerging, it is... Read More
Ever browse across a website that took ten million years... Read More
Many websites make the mistake of being all flash and... Read More
We've all seen and read product testimonials. They're a very... Read More
Web Design |