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.
house refresh service Lincolnshire ..No matter what product or service you're promoting, unless you... Read More
Selling on the internet is a challenge. There is no... Read More
Daily article:One of the most debated subject among webmasters is... Read More
Let's look at what your user wants to see at... Read More
A "template" is simply a design format which you can... Read More
Want to know what the worst thing to say on... Read More
Everybody talks about the importance of testing your sales copy... Read More
The HTML editor is usually a webpage design software that... Read More
The trend today to overuse animation in a website's opening... Read More
You spend time and money promoting your website; but what... Read More
There are literally thousands of different options, styles and formats... Read More
Web Design is a very subjective process. Your idea of... Read More
The first immutable law of effective navigation: It's gotta be... Read More
There can be zillions of reasons why your visitors return... Read More
We will take a look at why your visitors may... Read More
What are websites? Are they sales tools for vendors and... Read More
ASP.NET is a new programming framework from Microsoft for developing... Read More
I ask myself that question about once a month.My website... Read More
Your website is your tool for showing the online community... Read More
Here's a really simple way... any novice can create a... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
Are you building your website? If so, STOP! Take a... Read More
Are you using the best colors for your web site?... Read More
So you've decided to take the plunge. You know that... Read More
licensed cleaning services Lake Forest ..In cascading style sheets you can specify how your web... Read More
To create professional websites is not an easy task by... Read More
Every now and then, I receive a link exchange request... Read More
You can create a website that attracts customers, not repels... Read More
1. Web site File Structure / File NamingMost search engines... Read More
Creating your own website is actually easy in today's world... Read More
This is a very perfunctory look at the website code... Read More
It is a well-known fact that a successful business depends... Read More
I want you to imagine a lemon. In your mind's... Read More
No, that's not the real question. The real question is... Read More
The following list of websites is the best compilation of... Read More
Most people will agree there is nothing more annoying than... Read More
This is the second part of a two-part article about... Read More
I often wonder how serious people are when it comes... Read More
Favorite icon appears to the left of your link in... Read More
When you begin the design of your Web site, one... Read More
If you have a business, big or small you may... Read More
One of the most popular methods of traffic generation is... Read More
We've all surfed the web and seen some awful web... Read More
Are you a student of graphic design? If you have... Read More
Conventional Wisdom states you should use Sub-Directories to organize your... Read More
As a webmaster, you want to keep your visitors content... Read More
If you have a business, big or small you may... Read More
Wether you design your business brochures, flyers, web page, or... Read More
Content is the most important part of any website.The Internet... Read More
Web Design |